From 72f7dbfdffd919ffc5270776d1da295703a57cfb Mon Sep 17 00:00:00 2001 From: vuonghuuhung Date: Thu, 5 Dec 2024 10:27:49 +0700 Subject: [PATCH] feat: restore loading animation in LoadingBox and comment out BTC Dashboard link in Sidebar --- src/components/LoadingBox/index.tsx | 4 ++-- src/layouts/Sidebar.tsx | 2 +- src/routes.tsx | 9 --------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/LoadingBox/index.tsx b/src/components/LoadingBox/index.tsx index 315967dd6..5f4ecb1ea 100644 --- a/src/components/LoadingBox/index.tsx +++ b/src/components/LoadingBox/index.tsx @@ -15,8 +15,8 @@ const LoadingBox: React.FC<{ <> {loading ? (
- {/* */} - {/* {children} */} + + {children}
) : ( children diff --git a/src/layouts/Sidebar.tsx b/src/layouts/Sidebar.tsx index 7cb28992a..0d0afdac9 100644 --- a/src/layouts/Sidebar.tsx +++ b/src/layouts/Sidebar.tsx @@ -109,7 +109,7 @@ const Sidebar: React.FC<{}> = React.memo(() => { {renderLink(`/pools`, 'Pools', setLink, )} {renderLink('/staking', 'Staking', setLink, )} {renderLink('/co-harvest', 'Co-Harvest', setLink, )} - {renderLink('/bitcoin-dashboard', 'BTC Dashboard', setLink, )} + {/* {renderLink('/bitcoin-dashboard', 'BTC Dashboard', setLink, )} */} {renderLink('/bitcoin-dashboard-v2', 'BTC V2', setLink, )} {!isBeta && renderLink('https://beta.oraidex.io', 'OraiDEX Beta', setLink, , true)} diff --git a/src/routes.tsx b/src/routes.tsx index 973fbc10c..15a922941 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -9,7 +9,6 @@ import PoolsV3 from 'pages/Pool-V3'; import PoolDetail from 'pages/Pools/PoolDetail'; import UniversalSwap from 'pages/UniversalSwap/index'; import CoHarvest from 'pages/CoHarvest'; -import BitcoinDashboard from 'pages/BitcoinDashboard'; import BitcoinDashboardV2 from 'pages/BitcoinDashboardV2'; import StakingPage from 'pages/Staking'; import DownloadApp from 'pages/DownloadApp'; @@ -43,16 +42,8 @@ export default () => ( } /> } /> } /> - {/*FIXME: error in two page*/} - {/* } /> */} } /> } /> - - - - {/* } /> */} - {/* } /> */} - {/* } /> */} );