Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 38 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import React from 'react'; |
||
2 | import { |
||
3 | BrowserRouter as Router, |
||
4 | Route |
||
5 | |||
6 | } from "react-router-dom"; |
||
7 | |||
8 | import {HeaderMain} from './components/Header.js'; |
||
9 | import Footer from './components/Footer.js'; |
||
10 | import Home from './components/Home.js'; |
||
11 | import Report from './components/Report.js'; |
||
12 | import Register from './components/Register.js'; |
||
13 | import Login from './components/Login.js'; |
||
14 | import ReportEdit from './components/ReportEdit.js'; |
||
15 | import Chat from './components/Chat.js'; |
||
16 | |||
17 | function App() { |
||
18 | return ( |
||
19 | <Router> |
||
20 | <div> |
||
21 | <HeaderMain/> |
||
22 | <div className="app_content"> |
||
23 | <Route exact path="/" component={Home}/> |
||
24 | <Route path="/reports/week/:kmom" component={Report}/> |
||
25 | <Route path="/register" component={Register}/> |
||
26 | <Route path="/login" component={Login}/> |
||
27 | <Route path="/chat" component={Chat}/> |
||
28 | <Route path="/reports/edit/:kmom" component={ReportEdit}/> |
||
29 | |||
30 | </div> |
||
31 | <Footer/> |
||
32 | </div> |
||
33 | </Router> |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | export default App; |
||
38 |