File tree 1 file changed +4
-3
lines changed
apps/dashboard/src/app/(app)/(dashboard)/explore/[category]
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
BreadcrumbPage ,
7
7
BreadcrumbSeparator ,
8
8
} from "@/components/ui/breadcrumb" ;
9
+ import { getThirdwebClient } from "@/constants/thirdweb.server" ;
9
10
import {
10
11
ContractCard ,
11
12
ContractCardSkeleton ,
@@ -16,13 +17,11 @@ import type { Metadata } from "next";
16
17
import Link from "next/link" ;
17
18
import { notFound } from "next/navigation" ;
18
19
import { Suspense } from "react" ;
19
- import type { ThirdwebClient } from "thirdweb" ;
20
20
21
21
type ExploreCategoryPageProps = {
22
22
params : Promise < {
23
23
category : string ;
24
24
} > ;
25
- client : ThirdwebClient ;
26
25
} ;
27
26
28
27
export async function generateMetadata (
@@ -47,6 +46,7 @@ export default async function ExploreCategoryPage(
47
46
if ( ! category ) {
48
47
notFound ( ) ;
49
48
}
49
+ const client = getThirdwebClient ( undefined ) ;
50
50
51
51
return (
52
52
< div className = "flex flex-col" >
@@ -94,6 +94,7 @@ export default async function ExploreCategoryPage(
94
94
const overrides = Array . isArray ( publishedContractId )
95
95
? publishedContractId [ 2 ]
96
96
: undefined ;
97
+
97
98
if ( ! publisher || ! contractId ) {
98
99
return null ;
99
100
}
@@ -104,7 +105,7 @@ export default async function ExploreCategoryPage(
104
105
key = { publisher + contractId + overrides ?. title }
105
106
>
106
107
< ContractCard
107
- client = { props . client }
108
+ client = { client }
108
109
publisher = { publisher }
109
110
contractId = { contractId }
110
111
titleOverride = { overrides ?. title }
You can’t perform that action at this time.
0 commit comments