explorer: Only show supply page for custom urls (#29273)

only show supply page for custom urls
This commit is contained in:
Noah Gundotra 2022-12-14 23:01:28 -05:00 committed by GitHub
parent 3a7b67ea55
commit 119b7332f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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 (
<div className="container mt-4">
<SupplyCard />
<TopAccountsCard />
{cluster.cluster === Cluster.Custom ? <TopAccountsCard /> : null}
</div>
);
}