aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-07-03 23:23:56 +0300
committereug-vs <eug-vs@keemail.me>2020-07-03 23:23:56 +0300
commitc3a9c9251e704d702d16c74016d347b209ed8bc6 (patch)
tree22cb5130e9313581fbf3a46e7245faf97715753c /src
parentf6bb137ccf414ba36610c0ceea598c95683dce60 (diff)
downloadwhich-ui-c3a9c9251e704d702d16c74016d347b209ed8bc6.tar.gz
fix: make iconbutton round
Diffstat (limited to 'src')
-rw-r--r--src/components/Header/Header.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx
index e7f9f47..bf831d4 100644
--- a/src/components/Header/Header.tsx
+++ b/src/components/Header/Header.tsx
@@ -34,7 +34,7 @@ const useStyles = makeStyles(theme => ({
cursor: 'pointer',
color: 'white'
},
- avatar: {
+ round: {
width: theme.spacing(3),
height: theme.spacing(3)
}
@@ -79,7 +79,7 @@ const Header: React.FC = () => {
const ProfileButton = (
<IconButton onClick={handleProfile}>
{ user?.avatarUrl
- ? <Avatar className={classes.avatar} src={user?.avatarUrl} />
+ ? <Avatar className={classes.round} src={user?.avatarUrl} />
: <AccountCircle />
}
</IconButton>
@@ -105,7 +105,7 @@ const Header: React.FC = () => {
<AppBar position="fixed" className={classes.mobile}>
<Toolbar className={classes.toolbar}>
<IconButton onClick={handleHome}>
- <Typography className={classes.logo}>W</Typography>
+ <Typography className={`${classes.logo} ${classes.round}`}>W</Typography>
</IconButton>
{FeedButton}
{NotificationsButton}