Skip to content
Snippets Groups Projects
Select Git revision
  • 1e07b5b011cebfb3f877b3b72483a19ee7cf3862
  • master default protected
  • 2023-ujoncdelutan
  • 2023-update
  • 1.4.7 protected
  • 1.4.6 protected
  • 1.4.5 protected
  • 1.4.4 protected
  • 1.4.3 protected
  • 1.4.2 protected
  • 1.4.1 protected
  • 1.4.0 protected
  • 1.3.19 protected
  • 1.3.18 protected
  • 1.3.17 protected
  • 1.3.16 protected
  • 1.3.15 protected
  • 1.3.14 protected
  • 1.3.13 protected
  • 1.3.12 protected
  • 1.3.10 protected
  • 1.3.11 protected
  • 1.3.9 protected
  • 1.3.8 protected
24 results

Main.js

Blame
  • Main.js 1.31 KiB
    import { Redirect, Route, Switch, withRouter } from 'react-router-dom';
    
    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';
    import Homework from './pages/Homework';
    import Mentors from './pages/Mentors';
    import News from './pages/News';
    import NotFound from './pages/NotFound';
    import Profile from './pages/Profile';
    import React from 'react';
    import Schedule from './pages/Schedule';
    import Statistics from './pages/Statistics';
    
    const Main = () => (
      <Switch>
        <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>
    );
    
    export default Main;