diff --git a/src/app/(sidebar)/account/layout.tsx b/src/app/(sidebar)/account/layout.tsx index 267ff75c..cb7d5abc 100644 --- a/src/app/(sidebar)/account/layout.tsx +++ b/src/app/(sidebar)/account/layout.tsx @@ -4,50 +4,33 @@ import React from "react"; import { LayoutSidebarContent } from "@/components/layout/LayoutSidebarContent"; import { Routes } from "@/constants/routes"; -import { useIsTestingNetwork } from "@/hooks/useIsTestingNetwork"; - -// Includes navigation items that should ONLY display -// in TESTNET or FUTURENET -const DEFAULT_ACCOUNT_NAV_ITEMS = [ - { - route: Routes.ACCOUNT_CREATE, - label: "Create Account", - }, - { - route: Routes.ACCOUNT_FUND, - label: "Fund Account", - isTestnetOnly: true, - }, - { - route: Routes.ACCOUNT_CREATE_MUXED, - label: "Create Muxed Account", - }, - { - route: Routes.ACCOUNT_PARSE_MUXED, - label: "Parse Muxed Account", - }, -]; export default function AccountTemplate({ children, }: { children: React.ReactNode; }) { - const IS_TESTING_NETWORK = useIsTestingNetwork(); - - // Filtered navigation items for MAINNET - const filteredNavItems = DEFAULT_ACCOUNT_NAV_ITEMS.filter( - ({ isTestnetOnly }) => !isTestnetOnly, - ); - - const navItems = IS_TESTING_NETWORK - ? DEFAULT_ACCOUNT_NAV_ITEMS - : filteredNavItems; - return ( {children} diff --git a/src/components/layout/LayoutSidebarContent.tsx b/src/components/layout/LayoutSidebarContent.tsx index df769fdf..b12fb568 100644 --- a/src/components/layout/LayoutSidebarContent.tsx +++ b/src/components/layout/LayoutSidebarContent.tsx @@ -10,7 +10,6 @@ export type SidebarLink = { route: Routes | string; label: string; icon?: ReactNode; - isTestnetOnly?: boolean; nestedItems?: SidebarLink[]; };