aboutsummaryrefslogtreecommitdiff
path: root/src/containers/Profile/ProfileInfo.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/Profile/ProfileInfo.tsx')
-rw-r--r--src/containers/Profile/ProfileInfo.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/containers/Profile/ProfileInfo.tsx b/src/containers/Profile/ProfileInfo.tsx
index e2fb0a9..1f5a103 100644
--- a/src/containers/Profile/ProfileInfo.tsx
+++ b/src/containers/Profile/ProfileInfo.tsx
@@ -27,8 +27,12 @@ const useStyles = makeStyles(theme => ({
avatar: {
width: 150,
height: 150,
+ position: 'relative',
margin: '0 auto'
},
+ darken: {
+ filter: 'brightness(50%)'
+ },
name: {
margin: theme.spacing(1, 0),
display: 'flex',
@@ -129,7 +133,7 @@ const ProfileInfo: React.FC<PropTypes> = ({
</FileUpload>
)}
>
- <Avatar className={classes.avatar} user={userInfo} />
+ <Avatar className={[classes.avatar, progress && classes.darken].join(' ')} user={userInfo} />
{progress > 0 && (
<CircularProgress variant="static" value={progress} className={classes.progress} />
)}