Skip to content

Commit eaf303b

Browse files
committed
Move account-permissions page components in app router folder (No code change) (#5043)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring import statements for better path clarity and consistency in the `account-signers.tsx` and `account-signer.tsx` files. ### Detailed summary - Updated import path for `AccountSigners` in `page.tsx` from a relative path to a more concise one. - Adjusted the import path for `useAllChainsData` in `account-signer.tsx` to reflect a simpler structure. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 0b671fe commit eaf303b

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { WalletAddress } from "@/components/blocks/wallet-address";
22
import { Flex, SimpleGrid, useBreakpointValue } from "@chakra-ui/react";
33
import { formatDistance } from "date-fns/formatDistance";
4+
import { useAllChainsData } from "hooks/chains/allChains";
45
import { useActiveAccount } from "thirdweb/react";
56
import { Badge, Card, Heading, Text } from "tw-components";
6-
import { useAllChainsData } from "../../../../hooks/chains/allChains";
77

88
export type AccountSignerType = {
99
signer: string;

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

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

0 commit comments

Comments
 (0)