2020-04-14 10:53:19 +03:00
|
|
|
import React from "react";
|
|
|
|
import { Route, Switch } from "react-router-dom";
|
|
|
|
import HomePage from "./home/HomePage";
|
|
|
|
import AboutPage from "./about/AboutPage";
|
2020-05-13 19:25:14 +03:00
|
|
|
import Header from "./layout/Header";
|
2020-04-14 10:53:19 +03:00
|
|
|
import PageNotFound from "./PageNotFound";
|
|
|
|
import { ToastContainer } from "react-toastify";
|
|
|
|
import "react-toastify/dist/ReactToastify.css";
|
2020-05-12 02:31:25 +03:00
|
|
|
import SessionContainer from "../features/session/components/SessionContainer";
|
2020-05-13 22:51:15 +03:00
|
|
|
import { makeStyles } from "@material-ui/core/styles";
|
|
|
|
import { Container } from "@material-ui/core";
|
|
|
|
|
|
|
|
const useStyles = makeStyles(() => ({
|
|
|
|
content: {
|
|
|
|
"padding-left": "30px",
|
|
|
|
"padding-right": "30px"
|
|
|
|
}
|
|
|
|
}));
|
2020-04-14 10:53:19 +03:00
|
|
|
|
|
|
|
function App() {
|
2020-05-13 22:51:15 +03:00
|
|
|
const classes = useStyles();
|
|
|
|
|
2020-04-14 10:53:19 +03:00
|
|
|
return (
|
2020-05-12 02:48:18 +03:00
|
|
|
<div>
|
2020-04-14 10:53:19 +03:00
|
|
|
<Header />
|
2020-05-13 19:25:14 +03:00
|
|
|
<br />
|
2020-05-13 22:51:15 +03:00
|
|
|
<Container className={classes.content}>
|
|
|
|
<Switch>
|
|
|
|
<Route exact path="/" component={HomePage} />
|
|
|
|
<Route path="/about" component={AboutPage} />
|
|
|
|
<Route path="/sessions" component={SessionContainer} />
|
|
|
|
<Route component={PageNotFound} />
|
|
|
|
</Switch>
|
|
|
|
<ToastContainer autoClose={3000} />
|
|
|
|
</Container>
|
2020-04-14 10:53:19 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|