2021-04-29 14:18:26 +02:00
|
|
|
import React from 'react';
|
2021-05-25 12:55:30 +02:00
|
|
|
import {HashRouter, Route} from 'react-router-dom';
|
2021-04-29 14:18:26 +02:00
|
|
|
import Scolarite from './ScoDoc/Scolarite.js'
|
|
|
|
import Login from './ScoDoc/Login'
|
2021-04-30 13:56:53 +02:00
|
|
|
import GestionSemestre from "./ScoDoc/GestionSemestre";
|
2021-05-03 12:09:31 +02:00
|
|
|
import Etudiant from "./ScoDoc/Etudiant";
|
2021-04-29 14:18:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
const Main = () => {
|
|
|
|
return (
|
2021-05-25 12:55:30 +02:00
|
|
|
/*<HashRouter>
|
2021-05-10 17:27:18 +02:00
|
|
|
<Route exact path='/ScoDoc/static/mobile' component={Login}/>
|
|
|
|
<Route exact path='/ScoDoc/static/mobile/:DEPT/Scolarite' component={Scolarite}/>
|
|
|
|
<Route exact path='/ScoDoc/static/mobile/:DEPT/Scolarite/Etudiant/:EtudId' component={Etudiant}/>
|
|
|
|
<Route exact path='/ScoDoc/static/mobile/:DEPT/Scolarite/:SEM/GestionSem' component={GestionSemestre}/>
|
2021-05-25 12:55:30 +02:00
|
|
|
</HashRouter>*/
|
|
|
|
<HashRouter>
|
|
|
|
<Route exact path='/' component={Login}/>
|
|
|
|
<Route exact path='/:DEPT/Scolarite' component={Scolarite}/>
|
|
|
|
<Route exact path='/:DEPT/Scolarite/Etudiant/:EtudId' component={Etudiant}/>
|
|
|
|
<Route exact path='/:DEPT/Scolarite/:SEM/GestionSem' component={GestionSemestre}/>
|
|
|
|
</HashRouter>
|
2021-04-29 14:18:26 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Main;
|