diff --git a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/contract-overview-page.client.tsx b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/contract-overview-page.client.tsx index 9ed5a8bf3f9..6dd3fe53788 100644 --- a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/contract-overview-page.client.tsx +++ b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/contract-overview-page.client.tsx @@ -1,17 +1,9 @@ "use client"; - -import { useThirdwebClient } from "@/constants/thirdweb.client"; -import { useQuery } from "@tanstack/react-query"; import type { ThirdwebContract } from "thirdweb"; import type { ChainMetadata } from "thirdweb/chains"; -import { useActiveAccount } from "thirdweb/react"; import { ErrorPage, LoadingPage } from "../_components/page-skeletons"; import { useContractPageMetadata } from "../_hooks/useContractPageMetadata"; import { ContractOverviewPage } from "./ContractOverviewPage"; -import { - PublishedByUI, - getPublishedByCardProps, -} from "./components/published-by-ui"; export function ContractOverviewPageClient(props: { contract: ThirdwebContract; @@ -44,30 +36,8 @@ export function ContractOverviewPageClient(props: { chainSlug={chainMetadata.slug} isAnalyticsSupported={contractPageMetadata.isAnalyticsSupported} functionSelectors={contractPageMetadata.functionSelectors} - // TODO - publishedBy={} + // TODO - create a fully client rendered version of publishedBy and ContractCard and plug it here + publishedBy={undefined} /> ); } - -function PublishedByClient(props: { - contract: ThirdwebContract; -}) { - const client = useThirdwebClient(); - const address = useActiveAccount()?.address; - const propsQuery = useQuery({ - queryKey: ["getPublishedByCardProps", props], - queryFn: () => - getPublishedByCardProps({ - address: address || null, - client: client, - contract: props.contract, - }), - }); - - if (!propsQuery.data) { - return null; - } - - return ; -}