|
@@ -23,6 +23,7 @@ const Transactions = React.lazy(() => import("../Transactions"));
|
|
const Bounties = React.lazy(() => import("../Bounties"));
|
|
const Bounties = React.lazy(() => import("../Bounties"));
|
|
const Burners = React.lazy(() => import("../Burners"));
|
|
const Burners = React.lazy(() => import("../Burners"));
|
|
const ValidatorReport = React.lazy(() => import("../ValidatorReport"));
|
|
const ValidatorReport = React.lazy(() => import("../ValidatorReport"));
|
|
|
|
+const FAQ = React.lazy(() => import("../FAQ"));
|
|
|
|
|
|
interface IProps extends IState {
|
|
interface IProps extends IState {
|
|
toggleStar: (a: string) => void;
|
|
toggleStar: (a: string) => void;
|
|
@@ -30,7 +31,7 @@ interface IProps extends IState {
|
|
}
|
|
}
|
|
|
|
|
|
const Routes = (props: IProps) => {
|
|
const Routes = (props: IProps) => {
|
|
- const { reports, tokenomics } = props;
|
|
|
|
|
|
+ const { faq, reports, tokenomics } = props;
|
|
|
|
|
|
return (
|
|
return (
|
|
<div>
|
|
<div>
|
|
@@ -108,9 +109,7 @@ const Routes = (props: IProps) => {
|
|
/>
|
|
/>
|
|
<Route
|
|
<Route
|
|
path="/validator-report"
|
|
path="/validator-report"
|
|
- render={(routeprops) => (
|
|
|
|
- <ValidatorReport {...routeprops} {...props} />
|
|
|
|
- )}
|
|
|
|
|
|
+ render={(routeprops) => <ValidatorReport />}
|
|
/>
|
|
/>
|
|
<Route
|
|
<Route
|
|
path="/storage"
|
|
path="/storage"
|
|
@@ -130,6 +129,8 @@ const Routes = (props: IProps) => {
|
|
path="/burners"
|
|
path="/burners"
|
|
render={(routeprops) => <Burners {...routeprops} {...props} />}
|
|
render={(routeprops) => <Burners {...routeprops} {...props} />}
|
|
/>
|
|
/>
|
|
|
|
+ <Route path="/faq" render={(routeprops) => <FAQ faq={faq} />} />
|
|
|
|
+
|
|
<Route path="/" render={() => <Dashboard {...props} />} />
|
|
<Route path="/" render={() => <Dashboard {...props} />} />
|
|
</Switch>
|
|
</Switch>
|
|
</Suspense>
|
|
</Suspense>
|