aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainToolbar.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-03 22:51:20 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-03 22:51:20 +1200
commitda578b6ac7ba43b8d437aebbfe36777278370e5e (patch)
tree161d340924de3cc1d67207df441513833181eb3c /modern/src/MainToolbar.js
parenta4c233a05c9b577fe9ac12b4f6994b26b5d3ae50 (diff)
downloadtrackermap-web-da578b6ac7ba43b8d437aebbfe36777278370e5e.tar.gz
trackermap-web-da578b6ac7ba43b8d437aebbfe36777278370e5e.tar.bz2
trackermap-web-da578b6ac7ba43b8d437aebbfe36777278370e5e.zip
First hacky implementation
Diffstat (limited to 'modern/src/MainToolbar.js')
-rw-r--r--modern/src/MainToolbar.js47
1 files changed, 47 insertions, 0 deletions
diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js
new file mode 100644
index 00000000..e8294ab1
--- /dev/null
+++ b/modern/src/MainToolbar.js
@@ -0,0 +1,47 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { withStyles } from '@material-ui/core/styles';
+import AppBar from '@material-ui/core/AppBar';
+import Toolbar from '@material-ui/core/Toolbar';
+import Typography from '@material-ui/core/Typography';
+import Button from '@material-ui/core/Button';
+import IconButton from '@material-ui/core/IconButton';
+import MenuIcon from '@material-ui/icons/Menu';
+
+const styles = {
+ root: {
+ flexGrow: 1,
+ },
+ flex: {
+ flexGrow: 1,
+ },
+ menuButton: {
+ marginLeft: -12,
+ marginRight: 20,
+ },
+};
+
+function MainToobar(props) {
+ const { classes } = props;
+ return (
+ <div className={classes.root}>
+ <AppBar position="static">
+ <Toolbar>
+ <IconButton className={classes.menuButton} color="inherit" aria-label="Menu">
+ <MenuIcon />
+ </IconButton>
+ <Typography variant="title" color="inherit" className={classes.flex}>
+ Traccar
+ </Typography>
+ <Button color="inherit">Login</Button>
+ </Toolbar>
+ </AppBar>
+ </div>
+ );
+}
+
+MainToobar.propTypes = {
+ classes: PropTypes.object.isRequired,
+};
+
+export default withStyles(styles)(MainToobar);