Skip to content

Commit

Permalink
feat: restore loading animation in LoadingBox and comment out BTC Das…
Browse files Browse the repository at this point in the history
…hboard link in Sidebar
  • Loading branch information
vuonghuuhung committed Dec 5, 2024
1 parent 21ae706 commit 72f7dbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/components/LoadingBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const LoadingBox: React.FC<{
<>
{loading ? (
<div style={styles} className={cx('loading-wrap')}>
{/* <BlocLoaderDex open={true} theme={theme} classNameLoading={className} /> */}
{/* {children} */}
<BlocLoaderDex open={true} theme={theme} classNameLoading={className} />
{children}
</div>
) : (
children
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const Sidebar: React.FC<{}> = React.memo(() => {
{renderLink(`/pools`, 'Pools', setLink, <PoolV3Icon />)}
{renderLink('/staking', 'Staking', setLink, <StakingIcon />)}
{renderLink('/co-harvest', 'Co-Harvest', setLink, <CohavestIcon />)}
{renderLink('/bitcoin-dashboard', 'BTC Dashboard', setLink, <BtcDashboardIcon />)}
{/* {renderLink('/bitcoin-dashboard', 'BTC Dashboard', setLink, <BtcDashboardIcon />)} */}
{renderLink('/bitcoin-dashboard-v2', 'BTC V2', setLink, <BtcDashboardIcon />)}
{!isBeta && renderLink('https://beta.oraidex.io', 'OraiDEX Beta', setLink, <OraidexBetaIcon />, true)}
</div>
Expand Down
9 changes: 0 additions & 9 deletions src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -43,16 +42,8 @@ export default () => (
<Route path="/co-harvest" element={<CoHarvest />} />
<Route path="/bitcoin-dashboard-v2" element={<BitcoinDashboardV2 />} />
<Route path="/download-owallet" element={<DownloadApp />} />
{/*FIXME: error in two page*/}
{/* <Route path="/bitcoin-dashboard" element={<BitcoinDashboard />} /> */}
<Route path="/staking" element={<StakingPage />} />
<Route path="*" element={<NotFound />} />



{/* <Route path="/new-position/:item" element={<CreatePosition />} /> */}
{/* <Route path="/pools" element={<Pools />} /> */}
{/* <Route path="/pools/:poolUrl" element={<PoolDetail />} /> */}
</Routes>
</Suspense>
);

0 comments on commit 72f7dbf

Please sign in to comment.