From 3d93d6fa428839495687652efe8437df9c3b1f2f Mon Sep 17 00:00:00 2001 From: YohanTz Date: Thu, 4 Apr 2024 14:39:22 +0200 Subject: [PATCH] fix medias --- .../src/app/(routes)/lounge/_components/NftTransferItem.tsx | 2 +- apps/web/src/app/_components/Media.tsx | 1 - apps/web/src/server/api/routers/bridgeRequest.ts | 6 +----- apps/web/src/server/api/types.ts | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx b/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx index a1ee334b..ded1e1e0 100644 --- a/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx +++ b/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx @@ -90,7 +90,7 @@ export default function NftTransferItem({ alt="nft" className="rounded-lg" height={62} - src={collectionImage} + media={{ format: "image", src: collectionImage }} width={62} />
diff --git a/apps/web/src/app/_components/Media.tsx b/apps/web/src/app/_components/Media.tsx index 07556ffe..c063d817 100644 --- a/apps/web/src/app/_components/Media.tsx +++ b/apps/web/src/app/_components/Media.tsx @@ -20,7 +20,6 @@ export default function Media({ width, }: MediaProps) { const { resolvedTheme } = useTheme(); - console.log(media); if (media.src === undefined || media.src.length === 0) { return ( diff --git a/apps/web/src/server/api/routers/bridgeRequest.ts b/apps/web/src/server/api/routers/bridgeRequest.ts index 615a61d3..ecd5a722 100644 --- a/apps/web/src/server/api/routers/bridgeRequest.ts +++ b/apps/web/src/server/api/routers/bridgeRequest.ts @@ -93,11 +93,7 @@ export const bridgeRequestRouter = createTRPCRouter({ past: { requests: [], totalCount: 0 }, }; } - // if ( - // bridgeRequests[0] !== undefined && - // bridgeRequests[0]?.req.chain_src === "eth" - // ) { - // } + let requestMetadata: Array = []; if (bridgeRequests[0]?.req.chain_src === "eth") { requestMetadata = await alchemy.nft.getNftMetadataBatch( diff --git a/apps/web/src/server/api/types.ts b/apps/web/src/server/api/types.ts index f9d68f1c..db0021f9 100644 --- a/apps/web/src/server/api/types.ts +++ b/apps/web/src/server/api/types.ts @@ -1,4 +1,4 @@ -export type NftMedia = { format: "image" | "video"; src: string | undefined }; +export type NftMedia = { format: string; src: string | undefined }; export type Nft = { contractAddress: string;