basic layout #4
This commit is contained in:
26
frontend/src/components/content.js
Normal file
26
frontend/src/components/content.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import Overview from "./overview/overview";
|
||||
import {
|
||||
Route,
|
||||
} from "react-router-dom";
|
||||
|
||||
const useStyles = makeStyles(theme => ({
|
||||
root: {
|
||||
flexGrow: 1,
|
||||
padding: 20,
|
||||
backgroundColor: "#eeeeee",
|
||||
},
|
||||
}));
|
||||
|
||||
export default function Content() {
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
|
||||
<div className={classes.root}>
|
||||
<Route exact path="/" component={Overview} />
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user