aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-06-29 04:12:47 +0300
committerilyayudovin <ilyayudovin123@gmail.com>2020-06-29 04:12:47 +0300
commitae43b7234f51fbe570e2274581654a214ae7f44b (patch)
treeabb1e7252bbe84d82efbe235ccf2b14feb65b53f /src
parent37d3d4ca801ab282104ed41d97e10911e288947a (diff)
downloadwhich-ui-ae43b7234f51fbe570e2274581654a214ae7f44b.tar.gz
fix: change avatar only by click on camera icon
Diffstat (limited to 'src')
-rw-r--r--src/pages/ProfilePage/ProfileInfo.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pages/ProfilePage/ProfileInfo.tsx b/src/pages/ProfilePage/ProfileInfo.tsx
index fada65f..659d104 100644
--- a/src/pages/ProfilePage/ProfileInfo.tsx
+++ b/src/pages/ProfilePage/ProfileInfo.tsx
@@ -107,7 +107,6 @@ const ProfileInfo: React.FC<PropTypes> = ({
<MoreMenu logOut={logOut} />
<div className={classes.avatarContainer}>
<Badge
- onClick={handleClick}
overlap="circle"
anchorOrigin={{
vertical: 'bottom',
@@ -115,7 +114,7 @@ const ProfileInfo: React.FC<PropTypes> = ({
}}
badgeContent={(
<div className={classes.badge}>
- <CameraAltIcon />
+ <CameraAltIcon onClick={handleClick} />
</div>
)}
>