Skip to content

Commit

Permalink
Merge pull request #186 from terraswap/chore/disable-dashboard
Browse files Browse the repository at this point in the history
Disable Dashboard
  • Loading branch information
jbamlee authored Feb 22, 2024
2 parents 51d5348 + 52b9fb9 commit 873d691
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 873d691

Please sign in to comment.