From 6dd2d35b30a653ad22156624830157bbb35a866c Mon Sep 17 00:00:00 2001 From: Peterbjx Date: Tue, 7 May 2024 15:36:18 +0800 Subject: [PATCH] feat: build error --- .../nft/[collectionSymbol]/_Detail/index.tsx | 2 +- .../nft/[collectionSymbol]/_Detail/mock.ts | 39 ++++++++++--------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/app/[chain]/nft/[collectionSymbol]/_Detail/index.tsx b/src/app/[chain]/nft/[collectionSymbol]/_Detail/index.tsx index d9cb8ece..8c87e533 100644 --- a/src/app/[chain]/nft/[collectionSymbol]/_Detail/index.tsx +++ b/src/app/[chain]/nft/[collectionSymbol]/_Detail/index.tsx @@ -2,7 +2,7 @@ import { notFound } from 'next/navigation'; // import request from '@_api'; import { PAGE_SIZE } from './type'; import CollectionDetails from './CollectionDetails'; -import { fetchOverviewData, fetchTransferList } from './mock'; +import { fetchTransferList } from './mock'; import { ChainId, CollectionSymbol } from 'global'; import { fetchServerCollectionDetail } from '@_api/fetchNFTS'; import { TChainID } from '@_api/type'; diff --git a/src/app/[chain]/nft/[collectionSymbol]/_Detail/mock.ts b/src/app/[chain]/nft/[collectionSymbol]/_Detail/mock.ts index bc91c3e8..79bf14ee 100644 --- a/src/app/[chain]/nft/[collectionSymbol]/_Detail/mock.ts +++ b/src/app/[chain]/nft/[collectionSymbol]/_Detail/mock.ts @@ -87,24 +87,25 @@ async function fetchHolderData(p: HolderQueryParams): Promise => { - await new Promise((resolve) => setTimeout(resolve, 1000)); - return overview; -}; +// const fetchOverviewData = async (): Promise => { +// await new Promise((resolve) => setTimeout(resolve, 1000)); +// return overview; +// }; const inventoryItemList: InventoryItem[] = Array.from(new Array(100).keys()).map((item, i) => { const mockCollectionItem: InventorySymbol = { @@ -138,11 +139,11 @@ async function fetchInventoryList(p: InventoryListParams): Promise