From db4402100f00df59321cca99e7eed8ead68b2acd Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 7 Sep 2018 10:50:47 +0200 Subject: [PATCH] Nav Bar converted into a class --- .../components/Material-UI/ButtonAppBar.js | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/client/src/components/Material-UI/ButtonAppBar.js b/client/src/components/Material-UI/ButtonAppBar.js index 30e53f67a..8024fefe3 100644 --- a/client/src/components/Material-UI/ButtonAppBar.js +++ b/client/src/components/Material-UI/ButtonAppBar.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; @@ -41,32 +41,34 @@ const styles = { }, }; -function ButtonAppBar(props) { - const { classes } = props; - return ( -
- - - - - - - Users Module - +class ButtonAppBar extends Component { + render() { + const { classes } = this.props; + return ( +
+ + + + + + + Users Module + - - - - - - - + + + + + + + - - - -
- ); + +
+
+
+ ); + } } ButtonAppBar.propTypes = {