From 8df444bc17f84236613719f5cdc04b89b2f61f23 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 5 Sep 2018 15:52:02 +1200 Subject: Fix some issues on main screen --- modern/src/MainToolbar.js | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'modern/src/MainToolbar.js') diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js index e8294ab1..1420135f 100644 --- a/modern/src/MainToolbar.js +++ b/modern/src/MainToolbar.js @@ -1,5 +1,4 @@ -import React from 'react'; -import PropTypes from 'prop-types'; +import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; @@ -9,22 +8,23 @@ import IconButton from '@material-ui/core/IconButton'; import MenuIcon from '@material-ui/icons/Menu'; const styles = { - root: { - flexGrow: 1, - }, flex: { - flexGrow: 1, + flexGrow: 1 }, menuButton: { marginLeft: -12, - marginRight: 20, + marginRight: 20 }, }; -function MainToobar(props) { - const { classes } = props; - return ( -
+class MainToobar extends Component { + constructor(props) { + super(props); + } + + render() { + const { classes } = this.props; + return ( @@ -33,15 +33,11 @@ function MainToobar(props) { Traccar - + -
- ); + ); + } } -MainToobar.propTypes = { - classes: PropTypes.object.isRequired, -}; - export default withStyles(styles)(MainToobar); -- cgit v1.2.3