From 58e9d66f1804ec0b0036aef6e8b086889fd974c6 Mon Sep 17 00:00:00 2001 From: brianshattuck Date: Fri, 13 Dec 2024 08:21:30 -0800 Subject: [PATCH] Remove the V1 perps from the production site on ZKEVm, Fix prettier warnings --- src/components/Footer/Footer.tsx | 2 +- src/components/Header/Header.tsx | 2 +- src/components/Header/MobileHeader.tsx | 2 +- src/constants/abis/token-locker-abi.json | 2 +- src/pages/PerpsPage/FooterOrdersTable.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index fd4e69fa3..5ea130d5a 100755 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -30,7 +30,7 @@ const Footer: React.FC = () => { title: t('Products'), items: [ { title: t('swap'), link: '/swap' }, - { title: t('Perps - zkEVM V1'), link: process.env.REACT_APP_PERPS_URL }, + { title: t('Hydra'), link: process.env.REACT_APP_HYDRA_URL }, { title: 'Perps - PoS', link: '/falkor', isNew: true }, { title: t('pool'), link: '/pools' }, { title: t('farm'), link: '/farm' }, diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 0b1a2ab90..1dfd3254c 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -186,7 +186,7 @@ const Header: React.FC<{ onUpdateNewsletter: (val: boolean) => void }> = ({ menuItems.push(hydraItem); } } - if (showPerps) { + if (showPerps && process.env.NODE_ENV !== 'production') { if (showHydra || showPerpsV2) { perpsTab.items?.push(perpsItem); } else { diff --git a/src/components/Header/MobileHeader.tsx b/src/components/Header/MobileHeader.tsx index 866e3c83e..38bd5fc5d 100644 --- a/src/components/Header/MobileHeader.tsx +++ b/src/components/Header/MobileHeader.tsx @@ -70,7 +70,7 @@ const MobileHeader: React.FC = ({ }, }); } - if (showPerps) { + if (showPerps && process.env.NODE_ENV !== 'production') { perpMenuItems.push({ id: 'perps-v1-page-link', link: process.env.REACT_APP_PERPS_URL || '#', diff --git a/src/constants/abis/token-locker-abi.json b/src/constants/abis/token-locker-abi.json index 97c6cde7c..45797831a 100644 --- a/src/constants/abis/token-locker-abi.json +++ b/src/constants/abis/token-locker-abi.json @@ -1322,4 +1322,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/src/pages/PerpsPage/FooterOrdersTable.tsx b/src/pages/PerpsPage/FooterOrdersTable.tsx index 07abc5cdd..3ff13e15b 100644 --- a/src/pages/PerpsPage/FooterOrdersTable.tsx +++ b/src/pages/PerpsPage/FooterOrdersTable.tsx @@ -60,7 +60,7 @@ const FooterOrdersTable: React.FC<{ const [o, { cancelOrder, cancelAlgoOrder, isLoading }] = useOrderStream({ symbol: token, - status: orderStatus + status: orderStatus, }); const orders = o as Order[] | null;