Skip to content

Commit

Permalink
Merge pull request #187 from 1010varun/master
Browse files Browse the repository at this point in the history
  • Loading branch information
narayan954 committed Feb 21, 2023
2 parents 407b818 + 183f544 commit 06a77ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ function App() {
};

const [image, setImage] = useState(null);
const [address, setAddress] = useState(null);

const { enqueueSnackbar } = useSnackbar();
const [showScroll, setShowScroll] = useState(false);

const handleChange = (e) => {
if (e.target.files[0]) {
setImage(e.target.files[0]);
setAddress(e.target.value);
}
};

Expand Down Expand Up @@ -317,6 +319,9 @@ function App() {
className="modal__signup__img"
style={{ width: "80%" }}
/>
<div style={{height: "100px", width: "100px", borderRadius: "100%", border: "2px", borderColor: "black", borderStyle: "solid"}}>
{address ? <img src={URL.createObjectURL(image)} alt="profile pic" style={{width: "100px", height: "100px", borderRadius: "100%"}}/> : <div style={{marginTop: "30px"}}>PROFILE PICTURE</div>}
</div>
<Input
type="text"
placeholder="USERNAME"
Expand Down

0 comments on commit 06a77ab

Please sign in to comment.