feat: Add the menu button if authenticated
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user