From f00ab9a76279e334e4584a7f0a152abcc6d3880d Mon Sep 17 00:00:00 2001 From: Jourdan Dunkley Date: Tue, 8 Jul 2025 11:59:27 -0500 Subject: [PATCH] Refactor Network and Navbar Components to Remove Testnet References - Commented out upcoming chains in NetworkSelector and removed references to 'Camp Testnet' and 'Ozean Testnet' from Navbar and web3 configuration. - Updated constants to reflect the removal of testnet networks, streamlining the codebase. --- packages/ui/app/market/page.tsx | 2 +- packages/ui/components/Navbar.tsx | 4 +- .../ui/components/markets/NetworkSelector.tsx | 6 +-- packages/ui/config/web3.ts | 38 +------------------ packages/ui/constants/index.ts | 34 +---------------- 5 files changed, 8 insertions(+), 76 deletions(-) diff --git a/packages/ui/app/market/page.tsx b/packages/ui/app/market/page.tsx index d523c0704..1c8af8688 100644 --- a/packages/ui/app/market/page.tsx +++ b/packages/ui/app/market/page.tsx @@ -139,7 +139,7 @@ export default function Market() {
diff --git a/packages/ui/components/Navbar.tsx b/packages/ui/components/Navbar.tsx index 8c80254bc..aebd7a7c0 100644 --- a/packages/ui/components/Navbar.tsx +++ b/packages/ui/components/Navbar.tsx @@ -150,11 +150,11 @@ export default function Navbar() { label="Earn" isActive={pathname === '/earn'} /> - + /> */} = { } ] }, - [camptest.chainId]: { - name: 'Camp Testnet', - arrow: 'ffffff', - bg: 'bg-camp', - text: 'text-white', - border: 'border-camp', - logo: '/img/logo/CAMP.png', - pools: [{ id: '0', name: 'Main Pool', assets: ['WETH'] }] - }, - [ozeantest.chainId]: { - arrow: 'ffffff', - name: 'Ozean Testnet', - hexcode: '#2467ed', - bg: 'bg-blue-600', - accentbg: 'bg-blue-600', - text: 'text-white', - border: 'border-base', - logo: '/img/logo/OZEAN.png', - pools: [ - { - id: '0', - name: 'Main Pool', - assets: ['WUSDX'] - } - ] - }, [soneium.chainId]: { name: 'Soneium', arrow: 'ffffff',