From da92d9d35da53e8be1b52b0439267d20e6fe0380 Mon Sep 17 00:00:00 2001 From: Dominik Horn Date: Thu, 27 Feb 2020 18:50:37 +0100 Subject: [PATCH] cleanup route drawer code + rendering #10 * remove underline from links * remove dead code * remove unused imports --- .../general/navigation/RouteDrawer.tsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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 ? : } - - - ))} */}
);