|
1 | 1 | import React, { ReactNode } from "react"; |
2 | 2 | import { Redirect, Route, RouteComponentProps, Switch, withRouter } from "react-router-dom"; |
3 | | -import { ReactComponent as AnalyticsIcon } from "../assets/analytics.svg"; |
4 | 3 | import { ReactComponent as ExplorerIcon } from "../assets/explorer.svg"; |
5 | 4 | import { ReactComponent as HomeIcon } from "../assets/home.svg"; |
6 | 5 | import { ReactComponent as MoonIcon } from "../assets/moon.svg"; |
@@ -28,8 +27,6 @@ import Header from "./components/layout/Header"; |
28 | 27 | import HealthIndicator from "./components/layout/HealthIndicator"; |
29 | 28 | import NavMenu from "./components/layout/NavMenu"; |
30 | 29 | import NavPanel from "./components/layout/NavPanel"; |
31 | | -import Analytics from "./routes/Analytics"; |
32 | | -import { AnalyticsRouteProps } from "./routes/AnalyticsRouteProps"; |
33 | 30 | import Explorer from "./routes/Explorer"; |
34 | 31 | import Address from "./routes/explorer/Address"; |
35 | 32 | import { AddressRouteProps } from "./routes/explorer/AddressRouteProps"; |
@@ -242,12 +239,6 @@ class App extends AsyncComponent<RouteComponentProps, AppState> { |
242 | 239 | route: "/", |
243 | 240 | hidden: !this.state.isLoggedIn |
244 | 241 | }, |
245 | | - { |
246 | | - label: "Analytics", |
247 | | - icon: <AnalyticsIcon />, |
248 | | - route: "/analytics", |
249 | | - hidden: !this.state.isLoggedIn |
250 | | - }, |
251 | 242 | { |
252 | 243 | label: "Peers", |
253 | 244 | icon: <PeersIcon />, |
@@ -348,11 +339,6 @@ class App extends AsyncComponent<RouteComponentProps, AppState> { |
348 | 339 | component={() => (<Home />)} |
349 | 340 | key="home" |
350 | 341 | />, |
351 | | - <Route |
352 | | - path="/analytics/:section?" |
353 | | - component={(props: AnalyticsRouteProps) => (<Analytics {...props} />)} |
354 | | - key="analytics" |
355 | | - />, |
356 | 342 | <Route |
357 | 343 | exact={true} |
358 | 344 | path="/peers" |
|
0 commit comments