Skip to content

Commit 52d89ce

Browse files
committed
Move contract overview page components to app router folder (No code changes) (#5038)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the structure of the dashboard components by relocating several components to a new directory structure under `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components`. ### Detailed summary - Moved `NFTCards` import in `nfts-owned.tsx` to a new path. - Updated `NFTCards` import in `NFTDetails.tsx` to the new path. - Added `getAllRoleMembers` import in `PermissionsTable.tsx` from a new path. - Moved `getAllRoleMembers` import to a new path in `PermissionsTable.tsx`. - Added `useContractFunctionSelectors` import in `ContractChecklist.tsx` from a new path. - Moved `useContractFunctionSelectors` import to a new path in `ContractChecklist.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 60a80ef commit 52d89ce

File tree

12 files changed

+5
-5
lines changed

12 files changed

+5
-5
lines changed

apps/dashboard/src/contract-ui/tabs/overview/components/ContractChecklist.tsx renamed to apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components/ContractChecklist.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { AdminOnly } from "@3rdweb-sdk/react/components/roles/admin-only";
22
import { useIsMinter } from "@3rdweb-sdk/react/hooks/useContractRoles";
33
import { StepsCard } from "components/dashboard/StepsCard";
4+
import { useContractFunctionSelectors } from "contract-ui/hooks/useContractFunctionSelectors";
45
import { useMemo } from "react";
56
import type { ThirdwebContract } from "thirdweb";
67
import * as ERC20Ext from "thirdweb/extensions/erc20";
@@ -10,7 +11,6 @@ import * as ERC4337Ext from "thirdweb/extensions/erc4337";
1011
import { getAccounts } from "thirdweb/extensions/erc4337";
1112
import { useReadContract } from "thirdweb/react";
1213
import { Link, Text } from "tw-components";
13-
import { useContractFunctionSelectors } from "../../../hooks/useContractFunctionSelectors";
1414

1515
interface ContractChecklistProps {
1616
contract: ThirdwebContract;

apps/dashboard/src/contract-ui/tabs/overview/components/NFTDetails.tsx renamed to apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components/NFTDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as ERC721 from "thirdweb/extensions/erc721";
44
import * as ERC1155 from "thirdweb/extensions/erc1155";
55
import { useReadContract } from "thirdweb/react";
66
import { TrackedLink, type TrackedLinkProps } from "tw-components";
7-
import { NFTCards } from "./NFTCards";
7+
import { NFTCards } from "../../_components/NFTCards";
88

99
interface NFTDetailsProps {
1010
contract: ThirdwebContract;

apps/dashboard/src/contract-ui/tabs/overview/components/PermissionsTable.tsx renamed to apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/components/PermissionsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ToolTipLabel } from "@/components/ui/tooltip";
22
import { Box, Flex, List, SimpleGrid, Tag } from "@chakra-ui/react";
3+
import { getAllRoleMembers } from "contract-ui/hooks/permissions";
34
import { AnimatePresence, motion } from "framer-motion";
45
import { useClipboard } from "hooks/useClipboard";
56
import { CopyIcon } from "lucide-react";
@@ -16,7 +17,6 @@ import {
1617
type TrackedLinkProps,
1718
} from "tw-components";
1819
import { shortenIfAddress } from "utils/usedapp-external";
19-
import { getAllRoleMembers } from "../../../hooks/permissions";
2020

2121
interface PermissionsTableProps {
2222
contract: ThirdwebContract;

0 commit comments

Comments
 (0)