Skip to content

Commit 0159983

Browse files
committed
Move /accounts contract page in app router folder (no code change) (#5044)
## 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 account-related components in the dashboard, improving import paths for better clarity and maintainability. ### Detailed summary - Updated the import path for `AccountsPage` in `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/accounts/page.tsx`. - Removed an unnecessary import of `useChainSlug` in `accounts-table.tsx` and replaced it with a direct import. - Added `useChainSlug` import in `accounts-table.tsx` from a new path. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent ec10e81 commit 0159983

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useDashboardRouter } from "@/lib/DashboardRouter";
44
import { Flex, IconButton, Select, Skeleton } from "@chakra-ui/react";
55
import { createColumnHelper } from "@tanstack/react-table";
66
import { TWTable } from "components/shared/TWTable";
7+
import { useChainSlug } from "hooks/chains/chainSlug";
78
import {
89
ChevronFirstIcon,
910
ChevronLastIcon,
@@ -15,7 +16,6 @@ import type { ThirdwebContract } from "thirdweb";
1516
import { getAccounts, totalAccounts } from "thirdweb/extensions/erc4337";
1617
import { useReadContract } from "thirdweb/react";
1718
import { Text, TrackedCopyButton } from "tw-components";
18-
import { useChainSlug } from "../../../../hooks/chains/chainSlug";
1919

2020
const columnHelper = createColumnHelper<{ account: string }>();
2121

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

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

0 commit comments

Comments
 (0)