|
1 | | -import React, {Component} from 'react'; |
2 | | -import AppNavbar from './components/navigation/AppNav'; |
3 | | -import 'bootstrap/dist/css/bootstrap.min.css'; |
4 | | -import { Switch, Route} from "react-router-dom"; |
5 | | - |
6 | | -//Components |
7 | | -import AppLogin from "./components/login/Login"; |
8 | | -import {Logout} from "./components/login/Logout"; |
9 | | -import StudentList from "./components/student-list/StudentList"; |
10 | | -import Home from "./components/home/Home"; |
11 | | -import AddStudent from "./components/add-student/AddStudent"; |
12 | | -import Attendance from './components/attendance/Attendance'; |
13 | | -import EditStudent from './components/student-list/EditStudent'; |
14 | | -import Fee from './components/fees/Fee'; |
15 | | -import './index.css' |
16 | | - |
17 | | -export default class App extends Component { |
18 | | - render() { |
19 | | - return ( |
20 | | - <div className='App'> |
21 | | - <AppNavbar/> |
22 | | - <Switch> |
23 | | - <Route exact path="/" component={Home} /> |
24 | | - <Route path="/list" component={StudentList} /> |
25 | | - <Route path="/add" component={AddStudent} /> |
26 | | - <Route path="/attendance" component={Attendance} /> |
27 | | - <Route path="/login" component={AppLogin} /> |
28 | | - <Route path="/logout" component={Logout} /> |
29 | | - <Route path="/edit" component={EditStudent} /> |
30 | | - <Route path="/fees" component={Fee} /> |
31 | | - </Switch> |
32 | | - {this.props.children} |
33 | | - </div> |
34 | | - ) |
35 | | - } |
36 | | -} |
| 1 | +import React, {Component} from 'react'; |
| 2 | +import AppNavbar from './components/navigation/AppNav'; |
| 3 | +import './bootstrap.min.css' |
| 4 | +// import 'bootstrap/dist/css/bootstrap.min.css'; |
| 5 | +import { Switch, Route} from "react-router-dom"; |
| 6 | + |
| 7 | +//Components |
| 8 | +import AppLogin from "./components/login/Login"; |
| 9 | +import {Logout} from "./components/login/Logout"; |
| 10 | +import StudentList from "./components/student-list/StudentList"; |
| 11 | +import Home from "./components/home/Home"; |
| 12 | +import AddStudent from "./components/add-student/AddStudent"; |
| 13 | +import Attendance from './components/attendance/Attendance'; |
| 14 | +import EditStudent from './components/student-list/EditStudent'; |
| 15 | +import Fee from './components/fees/Fee'; |
| 16 | +import './index.css' |
| 17 | + |
| 18 | +export default class App extends Component { |
| 19 | + render() { |
| 20 | + return ( |
| 21 | + <div className='App'> |
| 22 | + <AppNavbar/> |
| 23 | + <Switch> |
| 24 | + <Route exact path="/" component={Home} /> |
| 25 | + <Route path="/list" component={StudentList} /> |
| 26 | + <Route path="/add" component={AddStudent} /> |
| 27 | + <Route path="/attendance" component={Attendance} /> |
| 28 | + <Route path="/login" component={AppLogin} /> |
| 29 | + <Route path="/logout" component={Logout} /> |
| 30 | + <Route path="/edit" component={EditStudent} /> |
| 31 | + <Route path="/fees" component={Fee} /> |
| 32 | + </Switch> |
| 33 | + {this.props.children} |
| 34 | + </div> |
| 35 | + ) |
| 36 | + } |
| 37 | +} |
0 commit comments