feat: Add the menu button if authenticated

This commit is contained in:
Alexander Polynomdivision
2018-08-26 17:19:55 +02:00
parent be5b5548fc
commit f804bc32b5
3 changed files with 19 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ import * as React from "react";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@material-ui/core/Toolbar";
import Typography from "@material-ui/core/Typography";
import IconButton from "@material-ui/core/IconButton";
import MenuIcon from "@material-ui/icons/Menu";
import { BrowserRouter, Route, Redirect } from "react-router-dom";
@@ -85,6 +87,13 @@ export default class Application extends React.Component<{}, IState> {
<div className="flex">
<AppBar position="static">
<Toolbar>
{
this.isAuthenticated() ? (
<IconButton color="inherit">
<MenuIcon />
</IconButton>
) : undefined
}
<Typography className="flex" variant="title" color="inherit">
Lateinicus
</Typography>