|
|
@@ -1,27 +0,0 @@
|
|
|
-import React from "react";
|
|
|
-import ReactDOM from "react-dom";
|
|
|
-import { Switch, Redirect, Route } from "react-router-dom";
|
|
|
-import Overview from "../Overview/overview";
|
|
|
-import Stocks from "../StocksApi/stocks";
|
|
|
-import IndexApi from "../IndexApi/indexApi";
|
|
|
-import indexBasicInfo from "../indexBasicInfo/indexBasicInfo";
|
|
|
-
|
|
|
-const BasicRoute = () => (
|
|
|
- <div>
|
|
|
- <Switch>
|
|
|
- <Route exact path="/overview" component={Overview} />
|
|
|
- <Route path="/stocks" component={Stocks} />
|
|
|
- <Route path="/indexApi" component={IndexApi} />
|
|
|
- <Route path="/indexBasicInfo" component={indexBasicInfo} />
|
|
|
- <Route
|
|
|
- path="/error"
|
|
|
- render={(props) => (
|
|
|
- <div>
|
|
|
- <h1>404 Not Found!</h1>
|
|
|
- </div>
|
|
|
- )}
|
|
|
- />
|
|
|
- </Switch>
|
|
|
- </div>
|
|
|
-);
|
|
|
-export default BasicRoute;
|