From 10650e8bb2aaded3b99ac087e651bc753a43d0e0 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 13 May 2021 18:23:03 -0400 Subject: [PATCH] refactor: add legacy icons and text to AnvilDrawer --- striker-ui/components/AnvilDrawer.tsx | 49 ++++++++++++++++++++------- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/striker-ui/components/AnvilDrawer.tsx b/striker-ui/components/AnvilDrawer.tsx index dcc52b63..6346edcd 100644 --- a/striker-ui/components/AnvilDrawer.tsx +++ b/striker-ui/components/AnvilDrawer.tsx @@ -1,8 +1,9 @@ -import { Drawer, List, ListItem } from '@material-ui/core'; +import { Divider, Drawer, List, ListItem, Box } from '@material-ui/core'; import { makeStyles, createStyles } from '@material-ui/core/styles'; import { Dispatch, SetStateAction } from 'react'; import { BodyText } from './Text'; import { ICONS, ICON_SIZE } from '../lib/consts/ICONS'; +import { DIVIDER } from '../lib/consts/DEFAULT_THEME'; interface DrawerProps { open: boolean; @@ -12,9 +13,16 @@ interface DrawerProps { const useStyles = makeStyles(() => createStyles({ list: { - width: '15vw', - backdropFilter: 'blur(10px)', - opacity: 0.7, + width: '200px', + backdropFilter: 'blur(5px) opacity(0)', + }, + container: {}, + divider: { + background: DIVIDER, + }, + text: { + paddingTop: '0.5em', + paddingLeft: '1em', }, }), ); @@ -23,19 +31,34 @@ const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => { const classes = useStyles(); return ( - setOpen(!open)}> -
+ setOpen(!open)} + > +
+ + + + {ICONS.map( (icon): JSX.Element => ( - - + + + + + + + + ), )}