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";
|
|
|
|
import Header from "./common/Header";
|
|
|
|
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-04-14 10:53:19 +03:00
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
2020-05-12 02:48:18 +03:00
|
|
|
<div>
|
2020-04-14 10:53:19 +03:00
|
|
|
<Header />
|
|
|
|
<Switch>
|
|
|
|
<Route exact path="/" component={HomePage} />
|
|
|
|
<Route path="/about" component={AboutPage} />
|
2020-05-12 02:31:25 +03:00
|
|
|
<Route path="/sessions" component={SessionContainer} />
|
2020-04-14 10:53:19 +03:00
|
|
|
<Route component={PageNotFound} />
|
|
|
|
</Switch>
|
|
|
|
<ToastContainer autoClose={3000} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|