Skip to content

[TOOL-4248] Dashboard: Fix explore category page not showing contract cards #6829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
BreadcrumbPage,
BreadcrumbSeparator,
} from "@/components/ui/breadcrumb";
import { getThirdwebClient } from "@/constants/thirdweb.server";
import {
ContractCard,
ContractCardSkeleton,
Expand All @@ -16,13 +17,11 @@ import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
import { Suspense } from "react";
import type { ThirdwebClient } from "thirdweb";

type ExploreCategoryPageProps = {
params: Promise<{
category: string;
}>;
client: ThirdwebClient;
};

export async function generateMetadata(
Expand All @@ -47,6 +46,7 @@ export default async function ExploreCategoryPage(
if (!category) {
notFound();
}
const client = getThirdwebClient(undefined);

return (
<div className="flex flex-col">
Expand Down Expand Up @@ -94,6 +94,7 @@ export default async function ExploreCategoryPage(
const overrides = Array.isArray(publishedContractId)
? publishedContractId[2]
: undefined;

if (!publisher || !contractId) {
return null;
}
Expand All @@ -104,7 +105,7 @@ export default async function ExploreCategoryPage(
key={publisher + contractId + overrides?.title}
>
<ContractCard
client={props.client}
client={client}
publisher={publisher}
contractId={contractId}
titleOverride={overrides?.title}
Expand Down
Loading