import { BrowserRouter as Router, Route, Link, NavLink } from "react-router-dom"; import React, { Component, Props } from 'react'; import { Provider } from 'react-redux'; import CBKDrawer from './components/Drawer'; import { Grid, Row } from '@material/react-layout-grid'; import List, { ListItem, ListItemText } from '@material/react-list'; import configureStore from 'store/configureStore'; import './styles/app.scss'; import "@material/react-layout-grid/dist/layout-grid.min.css"; import Routes, { RouteWithSubRoutes } from 'route.config'; function Index() { return

Home

; } function Users() { return

Users

; } const store = configureStore(); class App extends Component<{}, {}> { navbarItems: { title: string, path: string, active: boolean }[] constructor(props: any) { super(props); this.navbarItems = [ { title: 'Recipes', path: '/recipes', active: false }, { title: 'Planner', path: '/planner', active: false }, { title: 'Shoplist', path: '/shoplist', active: false }, ]; } render() { return ( { this.navbarItems.map((item, i) => ( {item.title} )) }
{ Routes.map((route, i) => ( )) }
) } } export default App;