Skip to content

Commit daceeed

Browse files
committed
remove deprecated NFT embed functionality (#6136)
fixes: CORE-720
1 parent 5f7c726 commit daceeed

File tree

5 files changed

+0
-731
lines changed

5 files changed

+0
-731
lines changed

apps/dashboard/src/@3rdweb-sdk/react/hooks/useApi.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -548,41 +548,6 @@ export function useResendEmailConfirmation() {
548548
});
549549
}
550550

551-
export function useApiKeys(props: {
552-
isLoggedIn: boolean;
553-
}) {
554-
const address = useActiveAccount()?.address;
555-
return useQuery({
556-
queryKey: apiKeys.keys(address || ""),
557-
queryFn: async () => {
558-
type Result = {
559-
data: ApiKey[];
560-
error?: { message: string };
561-
};
562-
563-
const res = await apiServerProxy<Result>({
564-
pathname: "/v1/keys",
565-
method: "GET",
566-
headers: {
567-
"Content-Type": "application/json",
568-
},
569-
});
570-
571-
if (!res.ok) {
572-
throw new Error(res.error);
573-
}
574-
575-
const json = res.data;
576-
577-
if (json.error) {
578-
throw new Error(json.error.message);
579-
}
580-
return json.data;
581-
},
582-
enabled: !!address && props.isLoggedIn,
583-
});
584-
}
585-
586551
export function useCreateApiKey() {
587552
const address = useActiveAccount()?.address;
588553
const queryClient = useQueryClient();

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_utils/getContractPageSidebarLinks.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ export function getContractPageSidebarLinks(data: {
3939
href: `${layoutPrefix}/events`,
4040
exactMatch: true,
4141
},
42-
{
43-
label: "Embed",
44-
href: `${layoutPrefix}/embed`,
45-
hide: data.metadata.embedType === null,
46-
exactMatch: true,
47-
},
4842
{
4943
label: "Analytics",
5044
href: `${layoutPrefix}/analytics`,

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/embed/EmbedSetup.client.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)