stykes fix

master
Tudor Stanciu 2020-05-13 23:45:16 +03:00
parent 7df9ef8d47
commit c11d8103bb
1 changed files with 6 additions and 12 deletions

View File

@ -7,24 +7,18 @@ 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(); const contentStyle = {
"padding-left": "30px",
"padding-right": "30px"
};
return ( return (
<div> <div>
<Header /> <Header />
<br /> <br />
<Container className={classes.content}> <div style={contentStyle}>
<Switch> <Switch>
<Route exact path="/" component={HomePage} /> <Route exact path="/" component={HomePage} />
<Route path="/about" component={AboutPage} /> <Route path="/about" component={AboutPage} />
@ -32,7 +26,7 @@ function App() {
<Route component={PageNotFound} /> <Route component={PageNotFound} />
</Switch> </Switch>
<ToastContainer autoClose={3000} /> <ToastContainer autoClose={3000} />
</Container> </div>
</div> </div>
); );
} }