diff --git a/src/components/Main.js b/src/components/Main.js index 8307cbbc7717fe67dc51cac994d1055fa01ebdea..c24e23edac03b8694ecc5c619229620dadcd5769 100644 --- a/src/components/Main.js +++ b/src/components/Main.js @@ -1,27 +1,27 @@ -import React from "react"; -import { Switch, Route, Redirect, withRouter } from "react-router-dom"; +import React from 'react'; +import { Switch, Route, Redirect, withRouter } from 'react-router-dom'; -import Home from "./pages/Home"; -import Trainers from "./pages/Trainers"; -import Schedule from "./pages/Schedule"; -import NotFound from "./pages/NotFound"; -import Profile from "./pages/Profile"; -import Statistics from "./pages/Statistics"; -import Groups from "./pages/Groups"; -import News from "./pages/News"; -import Homework from "./pages/Homework"; +import Home from './pages/Home'; +import Trainers from './pages/Trainers'; +import Schedule from './pages/Schedule'; +import NotFound from './pages/NotFound'; +import Profile from './pages/Profile'; +import Statistics from './pages/Statistics'; +import Groups from './pages/Groups'; +import News from './pages/News'; +import Homework from './pages/Homework'; const Main = () => ( <Switch> - <Redirect exact from="/" to="/home" /> - <Route exact path="/home" component={Home} /> - <Route path="/news" component={News} /> - <Route path="/trainers" component={Trainers} /> - <Route path="/schedule" component={Schedule} /> - <Route path="/profile" component={withRouter(Profile)} /> - <Route path="/statistics" component={Statistics} /> - <Route path="/groups" component={Groups} /> - <Route path="/homework" component={Homework} /> + <Redirect exact from='/' to='/home' /> + <Route exact path='/home' component={Home} /> + <Route path='/news' component={News} /> + <Route path='/trainers' component={Trainers} /> + <Route path='/schedule' component={Schedule} /> + <Route path='/profile' component={withRouter(Profile)} /> + <Route path='/statistics' component={Statistics} /> + <Route path='/groups' component={Groups} /> + <Route path='/homework' component={Homework} /> <Route component={NotFound} /> </Switch> );