Skip to content

Commit 0b671fe

Browse files
committed
Move Account Page components in app router folder (No Code Change) (#5042)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the code structure for better organization and maintainability, particularly in the `account` section of the dashboard. It modifies import paths and updates component references. ### Detailed summary - Changed import path for `AccountPage` in `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/account/page.tsx`. - Updated import path for `NFTCards` in `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/account/components/nfts-owned.tsx`. - Modified import paths for `useV5DashboardChain` and `StoredChain` in `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/account/components/deposit-native.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent e701fbf commit 0b671fe

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import { useThirdwebClient } from "@/constants/thirdweb.client";
44
import { Input } from "@chakra-ui/react";
55
import { TransactionButton } from "components/buttons/TransactionButton";
6+
import { useV5DashboardChain } from "lib/v5-adapter";
67
import { type ChangeEvent, useState } from "react";
8+
import type { StoredChain } from "stores/chainStores";
79
import { prepareTransaction, toWei } from "thirdweb";
810
import { useSendAndConfirmTransaction } from "thirdweb/react";
911
import { Card } from "tw-components";
10-
import { useV5DashboardChain } from "../../../../lib/v5-adapter";
11-
import type { StoredChain } from "../../../../stores/chainStores";
1212

1313
interface DepositNativeProps {
1414
address: string;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useWalletNFTs } from "@3rdweb-sdk/react";
44
import type { ThirdwebContract } from "thirdweb";
55
import { Text } from "tw-components";
6-
import { NFTCards } from "../../../../app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/NFTCards";
6+
import { NFTCards } from "../../_components/NFTCards";
77

88
interface NftsOwnedProps {
99
contract: ThirdwebContract;

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/account/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 { AccountPage } from "../../../../../../contract-ui/tabs/account/page";
32
import { getContractPageParamsInfo } from "../_utils/getContractFromParams";
43
import { getContractPageMetadata } from "../_utils/getContractPageMetadata";
4+
import { AccountPage } from "./AccountPage";
55

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

0 commit comments

Comments
 (0)