diff --git a/src/components/header-controls/components/chain-switcher.tsx b/src/components/header-controls/components/chain-switcher.tsx index 7645773..c043541 100644 --- a/src/components/header-controls/components/chain-switcher.tsx +++ b/src/components/header-controls/components/chain-switcher.tsx @@ -59,7 +59,6 @@ const DesktopChainSwitcher = ({ activeChain, onChainChange, isMobile }: ChainSwi { onChainChange?.(Number(keys.currentKey) as ChainId); }} diff --git a/src/layout/tabs.tsx b/src/layout/tabs.tsx index 5cb13fe..0f98f2b 100644 --- a/src/layout/tabs.tsx +++ b/src/layout/tabs.tsx @@ -1,13 +1,10 @@ import { useCallback, useMemo } from 'react'; -import { Modal, ModalBody, ModalContent, Tab, Tabs } from '@nextui-org/react'; +import { Tab, Tabs } from '@nextui-org/react'; import { useLocation, useNavigate } from '@tanstack/react-router'; import { defiTabs } from '@/config/tabs'; -import useWalletStatus from '@/hooks/useWalletStatus'; -import { ChainId } from '@/types/chains'; export default function DefiTabs({ children }: { children: React.ReactNode }) { - const { currentChainId } = useWalletStatus(); const { pathname } = useLocation(); const navigate = useNavigate(); @@ -55,26 +52,6 @@ export default function DefiTabs({ children }: { children: React.ReactNode }) { ))}
{children}
- {currentChainId === ChainId.DARWINIA && ( - - - {() => ( - <> - -
- fail-icon -
-

- This network is not supported yet. -

-
-
-
- - )} -
-
- )} ); }