blob: d1c880b3cdcf25533e441ce4cafbc4da62886a10 [file] [log] [blame]
Larbi Gharibe9af9732021-03-31 15:08:01 +01001/*
2 Company: Savoir-faire Linux
3 Author: Larbi Gharib <larbi.gharib@savoirfairelinux.com>
4 UI Project inspired from https://scrimba.com/p/pbNpTv/cbZBmfV
5 License: AGPL-3
6*/
7
8import React from 'react';
9//import logo from './logo.svg';
10import './App.css';
11
12
13import { BrowserRouter as Router, Route, Switch, Link, Redirect } from 'react-router-dom';
14
15import SignInPage from "./pages/index.jsx";
16import Jaas from "./pages/jaas.jsx"
17import NotFoundPage from "./pages/404.jsx"
18
19
20class App extends React.Component {
21
22 render() {
23 return <Router>
24 <Switch>
25 <Route exact path="/" component={SignInPage} />
26 <Route to="/Jaas" component={Jaas} />
27 <Route exact path="/404" component={NotFoundPage} />
28 <Redirect to="/404" />
29 </Switch>
30
31 </Router>
32 }
33}
34
35export default App;