Skip to content

Commit d08b9be

Browse files
committed
Move /nfts and /nfts/<tokenId> page components in app router folder (No code change) (#5048)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on restructuring the file paths and imports within the NFT dashboard components to improve organization and maintainability. ### Detailed summary - Updated import paths for `TokenIdPage` and `ContractNFTPage` in the `page.tsx` files. - Moved components from `contract-ui/tabs/nfts` to `app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/components`. - Added `useChainSlug` import in `table.tsx`. - Refactored `airdrop-tab.tsx` to import `AirdropAddressInput` and `AirdropUpload` from local path. - Adjusted import paths for `NftProperty` and `useNFTDrawerTabs` in `token-id.tsx`. - Updated dynamic imports for several components in `useNftDrawerTabs.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent cb64067 commit d08b9be

26 files changed

+14
-27
lines changed

apps/dashboard/src/contract-ui/tabs/nfts/components/airdrop-tab.tsx renamed to apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/components/airdrop-tab.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
import { Flex, useDisclosure } from "@chakra-ui/react";
44
import { TransactionButton } from "components/buttons/TransactionButton";
5-
import {
6-
type AirdropAddressInput,
7-
AirdropUpload,
8-
} from "contract-ui/tabs/nfts/components/airdrop-upload";
95
import { useTrack } from "hooks/analytics/useTrack";
106
import { useTxNotifications } from "hooks/useTxNotifications";
117
import { UploadIcon } from "lucide-react";
@@ -15,6 +11,7 @@ import { multicall } from "thirdweb/extensions/common";
1511
import { balanceOf, encodeSafeTransferFrom } from "thirdweb/extensions/erc1155";
1612
import { useActiveAccount, useSendAndConfirmTransaction } from "thirdweb/react";
1713
import { Button, Text } from "tw-components";
14+
import { type AirdropAddressInput, AirdropUpload } from "./airdrop-upload";
1815

1916
interface AirdropTabProps {
2017
contract: ThirdwebContract;

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { notFound, redirect } from "next/navigation";
2-
import { TokenIdPage } from "../../../../../../../contract-ui/tabs/nfts/components/token-id";
32
import { getContractPageParamsInfo } from "../../_utils/getContractFromParams";
43
import { getContractPageMetadata } from "../../_utils/getContractPageMetadata";
4+
import { TokenIdPage } from "./token-id";
55

66
export default async function Page(props: {
77
params: {

0 commit comments

Comments
 (0)