diff --git a/packages/frontend/src/components/general/navigation/RouteDrawer.tsx b/packages/frontend/src/components/general/navigation/RouteDrawer.tsx index ae21c10..d8bdc0b 100644 --- a/packages/frontend/src/components/general/navigation/RouteDrawer.tsx +++ b/packages/frontend/src/components/general/navigation/RouteDrawer.tsx @@ -10,7 +10,8 @@ import { } from '@material-ui/core'; import * as React from 'react'; import { Link } from 'react-router-dom'; -import { APP_ROUTES, getLinkForRoute, getDisplayNameForRoute } from 'util/routes'; +import { APP_ROUTES, getLinkForRoute, getDisplayNameForRoute } from '../../../util/routes'; +import h from '../../../util/history'; export interface RouteDrawerProps { readonly isOpen: boolean; @@ -36,22 +37,12 @@ export const RouteDrawer = (props: RouteDrawerProps) => {
{APP_ROUTES.map(route => ( - + h.push(getLinkForRoute(route))}> {route.icon && {route.icon}} - - - + ))} - {/** TODO: bellow is testing code */} - {/* - {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( - - {index % 2 === 0 ? : } - - - ))} */}
);