From 8da7123f623c2bd0f53b39b8632e5a3826921113 Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Fri, 14 Sep 2018 17:18:55 +0200 Subject: [PATCH] feat: Add links to the level list and the dashboard --- src/components/app.tsx | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/components/app.tsx b/src/components/app.tsx index 08b6eb9..5b8060d 100644 --- a/src/components/app.tsx +++ b/src/components/app.tsx @@ -16,7 +16,7 @@ import SettingsIcon from "@material-ui/icons/Settings"; import PersonIcon from "@material-ui/icons/Person"; import InfoIcon from "@material-ui/icons/Info"; -import { BrowserRouter, Route, Redirect } from "react-router-dom"; +import { BrowserRouter, Route, Redirect, Link } from "react-router-dom"; import AuthRoute from "../security/AuthRoute"; @@ -113,7 +113,7 @@ export default class Application extends React.Component<{}, IState> { // TODO: Don't fetch this when it was already fetched once. return [{ german: ["Wein"], - hint: "Worte auf '-um' sind meistens NeutrUM" + hint: "Worte auf '-um' sind meistens NeutrUM", type: VocabType.NOMEN, latin: { grundform: "Vinum", @@ -153,6 +153,12 @@ export default class Application extends React.Component<{}, IState> { return this.state.loggedIn === true; } + closeDrawer = () => { + this.setState({ + drawerOpen: false, + }); + } + render() { return @@ -202,10 +208,25 @@ export default class Application extends React.Component<{}, IState> { - + + + + - + Levelübersicht @@ -276,6 +297,12 @@ export default class Application extends React.Component<{}, IState> { return ; } }} /> + { + return

Get beaned!!

; + }} />