From 2ed3be210c3bce72cd5057cbca6dc87980156d71 Mon Sep 17 00:00:00 2001 From: MananTank Date: Tue, 15 Oct 2024 22:27:27 +0000 Subject: [PATCH] Move /analytics contract page in app router folder (no code change) (#5046) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## PR-Codex overview This PR focuses on updating the import path for the `ContractAnalyticsPage` component in the `page.tsx` file located in the analytics tab of the dashboard. It simplifies the import by using a relative path. ### Detailed summary - Changed the import path for `ContractAnalyticsPage` from a long relative path to a simplified relative import (`"./ContractAnalyticsPage"`). - No other significant changes are noted in the diff. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../[contractAddress]/analytics/ContractAnalyticsPage.tsx} | 0 .../(chain)/[chain_id]/[contractAddress]/analytics/page.tsx | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename apps/dashboard/src/{contract-ui/tabs/analytics/page.tsx => app/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/ContractAnalyticsPage.tsx} (100%) diff --git a/apps/dashboard/src/contract-ui/tabs/analytics/page.tsx b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/ContractAnalyticsPage.tsx similarity index 100% rename from apps/dashboard/src/contract-ui/tabs/analytics/page.tsx rename to apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/ContractAnalyticsPage.tsx diff --git a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/page.tsx b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/page.tsx index 4c428741509..d259d059f7d 100644 --- a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/page.tsx +++ b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/analytics/page.tsx @@ -1,7 +1,7 @@ import { notFound, redirect } from "next/navigation"; -import { ContractAnalyticsPage } from "../../../../../../contract-ui/tabs/analytics/page"; import { getContractPageParamsInfo } from "../_utils/getContractFromParams"; import { getContractPageMetadata } from "../_utils/getContractPageMetadata"; +import { ContractAnalyticsPage } from "./ContractAnalyticsPage"; export default async function Page(props: { params: {