2021-03-24 03:29:35 +00:00
|
|
|
import './App.css';
|
2021-03-29 07:56:34 +00:00
|
|
|
import Home from './Pages/Home';
|
|
|
|
import About from './Pages/About';
|
|
|
|
|
|
|
|
import Dashboard from './Pages/Dashboard';
|
|
|
|
import Admin from './Pages/Admin';
|
|
|
|
import Profile from './Pages/Profile';
|
|
|
|
import Login from './Pages/Login';
|
|
|
|
import Settings from './Pages/Settings';
|
|
|
|
import Register from './Pages/Register';
|
2021-03-27 04:05:05 +00:00
|
|
|
import Navigation from './Components/Navigation';
|
2021-03-26 08:06:28 +00:00
|
|
|
|
2021-03-30 08:36:28 +00:00
|
|
|
// import { logout } from './Actions/auth';
|
2021-03-28 08:52:34 +00:00
|
|
|
import { Route, Switch, withRouter } from 'react-router-dom';
|
2021-03-29 07:56:34 +00:00
|
|
|
import { Component } from 'react';
|
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
2021-03-24 03:29:35 +00:00
|
|
|
|
2021-03-29 07:56:34 +00:00
|
|
|
class App extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.state = {
|
|
|
|
true: true,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Navigation />
|
|
|
|
<Switch>
|
2021-03-30 10:03:40 +00:00
|
|
|
<Route exact={this.state.true} path={["/", "/home"]} component={Home} />
|
2021-03-29 07:56:34 +00:00
|
|
|
<Route path="/about" component={About} />
|
|
|
|
|
|
|
|
<Route path="/dashboard" component={Dashboard} />
|
|
|
|
<Route path="/profile" component={Profile} />
|
2021-03-30 08:36:28 +00:00
|
|
|
<Route path="/settings" component={Settings} />
|
|
|
|
|
2021-03-29 07:56:34 +00:00
|
|
|
<Route path="/admin" component={Admin} />
|
|
|
|
|
|
|
|
<Route path="/login" component={Login} />
|
|
|
|
<Route path="/register" component={Register} />
|
2021-03-30 10:03:40 +00:00
|
|
|
|
2021-03-29 07:56:34 +00:00
|
|
|
</Switch>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-03-30 10:03:40 +00:00
|
|
|
|
|
|
|
export default withRouter(App);
|