aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorilyayudovin <46264063+ilyayudovin@users.noreply.github.com>2020-08-17 02:01:15 +0300
committerGitHub <noreply@github.com>2020-08-17 02:01:15 +0300
commitf36e6b88b1074ce1705d7ca1c0255f79a44f8d68 (patch)
tree9b2ea70359884fb2dce887009b76cecdcd23c065 /src
parenta2288ab4786d9886245df6c92b4fbbe5be0e7a5f (diff)
parenta7ad05000a50000d99cc0cabc889cfd2b3075ce6 (diff)
downloadwhich-ui-f36e6b88b1074ce1705d7ca1c0255f79a44f8d68.tar.gz
Merge pull request #87 from which-ecosystem/DrawerCloser
feat: add icon for closing drawer
Diffstat (limited to 'src')
-rw-r--r--src/components/Drawer/Drawer.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/Drawer/Drawer.tsx b/src/components/Drawer/Drawer.tsx
index 9b416b0..a111a06 100644
--- a/src/components/Drawer/Drawer.tsx
+++ b/src/components/Drawer/Drawer.tsx
@@ -5,9 +5,11 @@ import {
List,
ListItem,
Typography,
- Divider
+ Divider,
+ IconButton
} from '@material-ui/core';
import { ExitToApp as LogoutIcon, Info } from '@material-ui/icons';
+import CloseIcon from '@material-ui/icons/Close';
import { makeStyles } from '@material-ui/core/styles';
import UserInfo from './UserInfo';
@@ -24,6 +26,9 @@ const useStyles = makeStyles(theme => ({
},
icon: {
marginRight: theme.spacing(1)
+ },
+ closeDrawer: {
+
}
}));
@@ -68,6 +73,9 @@ const Drawer: React.FC<PropTypes> = React.memo(({ isOpen, setIsOpen }) => {
disableBackdropTransition={!iOS}
disableDiscovery={iOS}
>
+ <IconButton onClick={handleClose} style={{ width: '48px' }}>
+ <CloseIcon />
+ </IconButton>
{user && <UserInfo user={user} />}
<Divider />
<List>