Skip to content

Commit

Permalink
Reapply "chore: disable dashboard"
Browse files Browse the repository at this point in the history
This reverts commit ee792b4.
  • Loading branch information
jbamlee committed Jan 4, 2024
1 parent 5fa3923 commit 10f200c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
21 changes: 14 additions & 7 deletions src/layouts/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down Expand Up @@ -190,13 +191,19 @@ const Sidebar = () => {
</div>
) : (
<div>
<NavLink
to="/"
className={location.pathname?.includes("/pairs") ? "active" : ""}
onClick={() => close()}
>
Dashboard
</NavLink>
<Tooltip content="Coming soon">
<NavLink
to="/"
className={
location.pathname?.includes("/pairs") ? "active" : ""
}
onClick={() => close()}
aria-disabled
style={{ pointerEvents: "none", opacity: 0.5 }}
>
Dashboard
</NavLink>
</Tooltip>
<NavLink to="/swap" onClick={() => close()}>
Swap
</NavLink>
Expand Down
4 changes: 2 additions & 2 deletions src/routes.tsx
Original file line number Diff line number Diff line change
@@ -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 () => (
<Routes>
<Route index element={<Dashboard />} />
{/* <Route index element={<Dashboard />} /> */}
<Route path="/swap" element={<Swap />} />
<Route path="/pairs/:address" element={<PairPage />} />
<Route element={<Navigate to="/" replace />} />
Expand Down

0 comments on commit 10f200c

Please sign in to comment.