Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 8 | import React from 'react'; |
| 9 | //import logo from './logo.svg'; |
| 10 | import './App.css'; |
| 11 | |
| 12 | |
| 13 | import { BrowserRouter as Router, Route, Switch, Link, Redirect } from 'react-router-dom'; |
| 14 | |
| 15 | import SignInPage from "./pages/index.jsx"; |
| 16 | import Jaas from "./pages/jaas.jsx" |
| 17 | import NotFoundPage from "./pages/404.jsx" |
| 18 | |
| 19 | |
| 20 | class 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 | |
| 35 | export default App; |