aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/NavBar.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-12 17:05:17 -0700
committerGitHub <noreply@github.com>2021-07-12 17:05:17 -0700
commit13a16a9ce640060b87ee00955c99855e9e4e2fe2 (patch)
treef742b820257f3e15c90fc545f20fa4f7f06a7821 /modern/src/components/NavBar.js
parentae822a2a39a38e3f3715c4573835b0ecd8646fa4 (diff)
parentea4ec2d769866db3490514b429cd95d314d19141 (diff)
downloadtrackermap-web-13a16a9ce640060b87ee00955c99855e9e4e2fe2.tar.gz
trackermap-web-13a16a9ce640060b87ee00955c99855e9e4e2fe2.tar.bz2
trackermap-web-13a16a9ce640060b87ee00955c99855e9e4e2fe2.zip
Merge pull request #874 from dkyeremeh/group-config
Configurations And settings
Diffstat (limited to 'modern/src/components/NavBar.js')
-rw-r--r--modern/src/components/NavBar.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/modern/src/components/NavBar.js b/modern/src/components/NavBar.js
new file mode 100644
index 00000000..93e79bbb
--- /dev/null
+++ b/modern/src/components/NavBar.js
@@ -0,0 +1,25 @@
+import React from 'react';
+import {
+ AppBar, Toolbar, Typography, IconButton,
+} from '@material-ui/core';
+import MenuIcon from '@material-ui/icons/Menu';
+
+const Navbar = ({ setOpenDrawer, title }) => (
+ <AppBar position="fixed" color="inherit">
+ <Toolbar>
+ <IconButton
+ color="inherit"
+ aria-label="open drawer"
+ edge="start"
+ onClick={() => setOpenDrawer(true)}
+ >
+ <MenuIcon />
+ </IconButton>
+ <Typography variant="h6" noWrap>
+ {title}
+ </Typography>
+ </Toolbar>
+ </AppBar>
+);
+
+export default Navbar;