From 2deeca3915b04019fa88371593853428ddfc30c9 Mon Sep 17 00:00:00 2001 From: maro Date: Thu, 23 Nov 2023 12:06:53 +0900 Subject: [PATCH] chore: disable dashboard --- 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 () => ( - } /> + {/* } /> */} } /> } /> } />