WIP - demo project
This commit is contained in:
@ -30,7 +30,8 @@ import CardContent from '@material-ui/core/CardContent';
|
||||
import CardActions from '@material-ui/core/CardActions';
|
||||
import Avatar from '@material-ui/core/Avatar';
|
||||
|
||||
import { APP_NAME } from '../constants/App';
|
||||
import ProjectMenu from '../project/ProjectMenu';
|
||||
import { PROJECT_NAME } from '../constants/Env';
|
||||
import { withAuthenticationContext } from '../authentication/Context.js';
|
||||
|
||||
const drawerWidth = 290;
|
||||
@ -65,8 +66,7 @@ const styles = theme => ({
|
||||
width: drawerWidth,
|
||||
},
|
||||
content: {
|
||||
flexGrow: 1,
|
||||
padding: theme.spacing(),
|
||||
flexGrow: 1
|
||||
},
|
||||
authMenu: {
|
||||
zIndex: theme.zIndex.tooltip,
|
||||
@ -112,11 +112,13 @@ class MenuAppBar extends React.Component {
|
||||
<div>
|
||||
<Toolbar>
|
||||
<Typography variant="h6" color="primary">
|
||||
{APP_NAME}
|
||||
{PROJECT_NAME}
|
||||
</Typography>
|
||||
<Divider absolute />
|
||||
</Toolbar>
|
||||
<Divider />
|
||||
<ProjectMenu />
|
||||
<Divider />
|
||||
<List>
|
||||
<ListItem to='/wifi/' selected={path.startsWith('/wifi/')} button component={Link}>
|
||||
<ListItemIcon>
|
||||
|
@ -8,15 +8,15 @@ import Typography from '@material-ui/core/Typography';
|
||||
const styles = theme => ({
|
||||
content: {
|
||||
padding: theme.spacing(2),
|
||||
margin: theme.spacing(2),
|
||||
margin: theme.spacing(3),
|
||||
}
|
||||
});
|
||||
|
||||
function SectionContent(props) {
|
||||
const { children, classes, title } = props;
|
||||
const { children, classes, title, titleGutter } = props;
|
||||
return (
|
||||
<Paper className={classes.content}>
|
||||
<Typography variant="h6">
|
||||
<Typography variant="h6" gutterBottom={titleGutter}>
|
||||
{title}
|
||||
</Typography>
|
||||
{children}
|
||||
@ -30,7 +30,8 @@ SectionContent.propTypes = {
|
||||
PropTypes.arrayOf(PropTypes.node),
|
||||
PropTypes.node
|
||||
]).isRequired,
|
||||
title: PropTypes.string.isRequired
|
||||
title: PropTypes.string.isRequired,
|
||||
titleGutter: PropTypes.bool
|
||||
};
|
||||
|
||||
export default withStyles(styles)(SectionContent);
|
||||
|
Reference in New Issue
Block a user