Skip to content

Commit

Permalink
feat(Sidebar): add icons for each getter
Browse files Browse the repository at this point in the history
  • Loading branch information
super-bunny committed Dec 2, 2021
1 parent 7cf7682 commit 9b38e7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions renderer/components/pages/_app/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import DashboardIcon from '@mui/icons-material/Dashboard'
import ConditionalTooltip from '../../../ConditionalTooltip'
import useAvailableGetters from '../../../../hooks/getter/useAvailableGetters'
import useGetGetterLabel from '../../../../hooks/getter/useGetGetterLabel'
import GetterIcon from './GetterIcon'

export interface SidebarProps {
drawerHeaderClass: string
Expand Down Expand Up @@ -103,6 +104,9 @@ export default function Sidebar({ drawerHeaderClass, drawerOpen, handleDrawerCha
|| router.pathname.split('/').pop() === getter.slice(3).toLowerCase() }
button
>
<ListItemIcon>
<GetterIcon getter={ getter }/>
</ListItemIcon>
<ListItemText primary={ getGetterLabel(getter) }/>
</ListItem>
)) }
Expand Down

0 comments on commit 9b38e7a

Please sign in to comment.