From 52b9fb9d3b8ffed88c7ecedfec439f896a2470f1 Mon Sep 17 00:00:00 2001 From: jbamlee Date: Thu, 22 Feb 2024 01:59:32 +0900 Subject: [PATCH] Revert "Merge pull request #185 from terraswap/chore/enable-dashboard" This reverts commit 51d5348aba123930a33f06e24d04dd18d2c1ccb5, reversing changes made to 010ea09845965adeb57daa68509dcf175e4b7ba4. --- src/layouts/Sidebar.tsx | 21 ++++++++++++++------- src/routes.tsx | 4 ++-- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/layouts/Sidebar.tsx b/src/layouts/Sidebar.tsx index b76ac4f0..2c18370d 100644 --- a/src/layouts/Sidebar.tsx +++ b/src/layouts/Sidebar.tsx @@ -9,6 +9,7 @@ import { socialMediaList } from "constants/constants" import SocialMediaAnchor from "components/SocialMediaAnchor" import ChangeVersionButton from "components/ChangeVersionButton" import useMigration from "hooks/useMigration" +import Tooltip from "components/Tooltip" const Wrapper = styled.div<{ isOpen: boolean }>` width: 100%; @@ -190,13 +191,19 @@ const Sidebar = () => { ) : (
- close()} - > - Dashboard - + + close()} + aria-disabled + style={{ pointerEvents: "none", opacity: 0.5 }} + > + Dashboard + + close()}> Swap diff --git a/src/routes.tsx b/src/routes.tsx index 3a356cbf..9378ab38 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,12 +1,12 @@ import { Route, Routes, Navigate } from "react-router-dom" -import Dashboard from "./pages/Dashboard" +// import Dashboard from "./pages/Dashboard" import PairPage from "./pages/Dashboard/Pair" import Swap from "./pages/Swap" export default () => ( - } /> + {/* } /> */} } /> } /> } />