|
@@ -1,22 +1,12 @@
|
|
import React from "react";
|
|
import React from "react";
|
|
-import { Button } from "react-bootstrap";
|
|
|
|
-import { Link } from "react-router-dom";
|
|
|
|
|
|
+import Burns from "./Burns";
|
|
|
|
+import Navigation from "./Navigation";
|
|
import Overview from "./Overview";
|
|
import Overview from "./Overview";
|
|
import ReportBrowser from "./ReportBrowser";
|
|
import ReportBrowser from "./ReportBrowser";
|
|
import Loading from "../Loading";
|
|
import Loading from "../Loading";
|
|
|
|
|
|
import { Tokenomics } from "../../types";
|
|
import { Tokenomics } from "../../types";
|
|
|
|
|
|
-const Back = () => {
|
|
|
|
- return (
|
|
|
|
- <Link to={`/`}>
|
|
|
|
- <Button variant="secondary" className="p-1 m-3">
|
|
|
|
- back
|
|
|
|
- </Button>
|
|
|
|
- </Link>
|
|
|
|
- );
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
interface IProps {
|
|
interface IProps {
|
|
reports: { [key: string]: string };
|
|
reports: { [key: string]: string };
|
|
tokenomics?: Tokenomics;
|
|
tokenomics?: Tokenomics;
|
|
@@ -24,6 +14,8 @@ interface IProps {
|
|
|
|
|
|
const CouncilReports = (props: IProps) => {
|
|
const CouncilReports = (props: IProps) => {
|
|
const { reports, tokenomics } = props;
|
|
const { reports, tokenomics } = props;
|
|
|
|
+ if (!tokenomics) return <Loading />;
|
|
|
|
+ const { exchanges, extecutedBurnsAmount } = tokenomics;
|
|
|
|
|
|
return (
|
|
return (
|
|
<div className="h-100 py-3 d-flex flex-row justify-content-center">
|
|
<div className="h-100 py-3 d-flex flex-row justify-content-center">
|
|
@@ -33,11 +25,12 @@ const CouncilReports = (props: IProps) => {
|
|
{tokenomics ? <Overview {...tokenomics} /> : <Loading />}
|
|
{tokenomics ? <Overview {...tokenomics} /> : <Loading />}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <Link to={`/councils`}>
|
|
|
|
- <Button variant="dark">Previous Councils</Button>
|
|
|
|
- </Link>
|
|
|
|
|
|
+ <Burns
|
|
|
|
+ exchanges={exchanges}
|
|
|
|
+ extecutedBurnsAmount={extecutedBurnsAmount}
|
|
|
|
+ />
|
|
|
|
|
|
- <Back />
|
|
|
|
|
|
+ <Navigation />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div className="box col-8">
|
|
<div className="box col-8">
|