styles update
parent
3a78c63bc6
commit
9b58bc5048
|
@ -7,19 +7,32 @@ import PageNotFound from "./PageNotFound";
|
||||||
import { ToastContainer } from "react-toastify";
|
import { ToastContainer } from "react-toastify";
|
||||||
import "react-toastify/dist/ReactToastify.css";
|
import "react-toastify/dist/ReactToastify.css";
|
||||||
import SessionContainer from "../features/session/components/SessionContainer";
|
import SessionContainer from "../features/session/components/SessionContainer";
|
||||||
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
|
import { Container } from "@material-ui/core";
|
||||||
|
|
||||||
|
const useStyles = makeStyles(() => ({
|
||||||
|
content: {
|
||||||
|
"padding-left": "30px",
|
||||||
|
"padding-right": "30px"
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
const classes = useStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Header />
|
<Header />
|
||||||
<br />
|
<br />
|
||||||
<Switch>
|
<Container className={classes.content}>
|
||||||
<Route exact path="/" component={HomePage} />
|
<Switch>
|
||||||
<Route path="/about" component={AboutPage} />
|
<Route exact path="/" component={HomePage} />
|
||||||
<Route path="/sessions" component={SessionContainer} />
|
<Route path="/about" component={AboutPage} />
|
||||||
<Route component={PageNotFound} />
|
<Route path="/sessions" component={SessionContainer} />
|
||||||
</Switch>
|
<Route component={PageNotFound} />
|
||||||
<ToastContainer autoClose={3000} />
|
</Switch>
|
||||||
|
<ToastContainer autoClose={3000} />
|
||||||
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#app {
|
#app {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-left: 50px;
|
|
||||||
padding-right: 50px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
|
|
Loading…
Reference in New Issue