mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-23 11:04:49 +00:00
Added V2 from scratch
This commit is contained in:
parent
5c2232f4e8
commit
6c2925a35d
478 changed files with 21437 additions and 134206 deletions
36
frontend/client/src/layouts/Dashboard.js
Normal file
36
frontend/client/src/layouts/Dashboard.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import React from "react";
|
||||
import {Route, Switch} from "react-router-dom";
|
||||
import IndexPage from "../pages/Index";
|
||||
import ProfilePage from "../pages/Profile";
|
||||
import Navigation from "../components/Navigation";
|
||||
import withStyles from '@material-ui/core/styles/withStyles';
|
||||
import CssBaseline from "@material-ui/core/CssBaseline/CssBaseline";
|
||||
|
||||
const styles = theme => ({
|
||||
content: {
|
||||
width: '100%',
|
||||
maxWidth: theme.breakpoints.values.md,
|
||||
margin: `${theme.spacing.unit * 4}px auto`,
|
||||
padding: `0 ${theme.spacing.unit}px`,
|
||||
}
|
||||
});
|
||||
|
||||
function Dashboard(props) {
|
||||
const { classes } = props;
|
||||
return (
|
||||
<React.Fragment>
|
||||
<CssBaseline />
|
||||
<div className="dashboard-layout">
|
||||
<Navigation/>
|
||||
<main className={classes.content}>
|
||||
<Switch>
|
||||
<Route exact path="/" component={IndexPage}/>
|
||||
<Route path="/profile" component={ProfilePage}/>
|
||||
</Switch>
|
||||
</main>
|
||||
</div>
|
||||
</React.Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
export default withStyles(styles)(Dashboard);
|
||||
Loading…
Add table
Add a link
Reference in a new issue