diff --git a/components/sankey/Render.tsx b/components/sankey/Render.tsx index d542264..f62b9dc 100644 --- a/components/sankey/Render.tsx +++ b/components/sankey/Render.tsx @@ -12,6 +12,7 @@ import SankeyFilter from "./SankeyFilter"; import SankeyGraph from "./SankeyGraph"; import { SingleValue } from "react-select"; import { useWindowSize } from "usehooks-ts"; +import { getDateString } from "@/utils/helpers"; export default function SankeyRender() { const { height: windowHeight } = useWindowSize(); @@ -59,7 +60,6 @@ export default function SankeyRender() { return ( <> -
+
+ + {/* Headline */} + + + {/* Centered date paragraph */} + {rangeData?.data?.range && ( +
+ The data displayed on this site covers the period from{" "} + {getDateString(rangeData.data.range.startTime).split(" ")[0]} ({rangeData.data.range.startBlock}){" "} + to{" "} + {getDateString(rangeData.data.range.endTime).split(" ")[0]} ({rangeData.data.range.endBlock}){" "}. + +

+ One of the top solvers in the game continues to publish daily order flow data for the community. Check them out at + orderflow.barterswap.xyz ! + +

+
+ )} + + +
+ + ); } diff --git a/components/sankey/SankeyGraph.tsx b/components/sankey/SankeyGraph.tsx index 31c3ca5..64f77ab 100644 --- a/components/sankey/SankeyGraph.tsx +++ b/components/sankey/SankeyGraph.tsx @@ -75,9 +75,6 @@ const SankeyGraph: FC = ({ height, txHash, isLoading, data, rangeData, er )} -
- -
); } else if (isSmallDevice) { @@ -125,9 +122,6 @@ const SankeyGraph: FC = ({ height, txHash, isLoading, data, rangeData, er )} -
- -
); } else { @@ -185,9 +179,6 @@ const SankeyGraph: FC = ({ height, txHash, isLoading, data, rangeData, er )} -
- -
); } diff --git a/utils/clickhouse.ts b/utils/clickhouse.ts index 52ab32e..2799688 100644 --- a/utils/clickhouse.ts +++ b/utils/clickhouse.ts @@ -4,4 +4,5 @@ export const client = createClient({ host: process.env.CLICKHOUSE_HOST ?? "http://localhost:8123", username: process.env.CLICKHOUSE_USER ?? "default", password: process.env.CLICKHOUSE_PASSWORD ?? "", -}); + database: process.env.CLICKHOUSE_DATABASE ?? "default", +}); \ No newline at end of file