You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
710 B
35 lines
710 B
import React, { Component } from 'react'; |
|
import './App.css'; |
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; |
|
// import proxy from './Redux/proxy'; |
|
import Home from './views/Home/index'; |
|
|
|
|
|
class AppRouter extends Component { |
|
constructor(props) { |
|
super(props); |
|
window.router = this; |
|
} |
|
state = {}; |
|
render() { |
|
let home = ( |
|
<Route exact path={'/'}> |
|
<Home /> |
|
{/* {proxy.status() ? <Home /> : <Auth />} */} |
|
</Route> |
|
); |
|
|
|
return ( |
|
<Router> |
|
<Switch> |
|
{home} |
|
{/* <Route path={'/list'}> |
|
<List /> |
|
</Route> */} |
|
</Switch> |
|
</Router> |
|
); |
|
} |
|
} |
|
|
|
export default AppRouter;
|
|
|