Skip to content
Snippets Groups Projects
Main.js 1.31 KiB
Newer Older
  • Learn to ignore specific revisions
  • Rafael László's avatar
    Rafael László committed
    import { Redirect, Route, Switch, withRouter } from 'react-router-dom';
    
    Rafael László's avatar
    Rafael László committed
    import ApplicantProfile from './pages/ApplicantProfile';
    import Applications from './pages/Applications';
    import EventDetail from './pages/EventDetail';
    import Groups from './pages/Groups';
    
    import Home from './pages/Home';
    
    Rafael László's avatar
    Rafael László committed
    import Homework from './pages/Homework';
    
    Rafael László's avatar
    Rafael László committed
    import Mentors from './pages/Mentors';
    
    Rafael László's avatar
    Rafael László committed
    import News from './pages/News';
    
    import NotFound from './pages/NotFound';
    import Profile from './pages/Profile';
    
    Rafael László's avatar
    Rafael László committed
    import React from 'react';
    import Schedule from './pages/Schedule';
    
    import Statistics from './pages/Statistics';
    
    Rafael László's avatar
    Rafael László committed
        <Redirect exact from="/" to="/home" />
        <Route exact path="/home" component={Home} />
        <Route path="/news" component={News} />
        <Route path="/mentors" component={Mentors} />
        <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 path="/events/:id" component={EventDetail} />
        <Route path="/applications" component={Applications} />
        <Route path="/applicant/:id" component={ApplicantProfile} />
    
        <Route component={NotFound} />
      </Switch>
    
    Sandor Bereczki's avatar
    Sandor Bereczki committed
    );
    
    export default Main;