From 119b7332f07c2cce8d006bdbbae878128fc2764f Mon Sep 17 00:00:00 2001 From: Noah Gundotra Date: Wed, 14 Dec 2022 23:01:28 -0500 Subject: [PATCH] explorer: Only show supply page for custom urls (#29273) only show supply page for custom urls --- explorer/src/pages/SupplyPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/explorer/src/pages/SupplyPage.tsx b/explorer/src/pages/SupplyPage.tsx index 892548e759..e100fc0d1b 100644 --- a/explorer/src/pages/SupplyPage.tsx +++ b/explorer/src/pages/SupplyPage.tsx @@ -1,12 +1,14 @@ import React from "react"; import { TopAccountsCard } from "components/TopAccountsCard"; import { SupplyCard } from "components/SupplyCard"; +import { Cluster, useCluster } from "providers/cluster"; export function SupplyPage() { + const cluster = useCluster(); return (
- + {cluster.cluster === Cluster.Custom ? : null}
); }