Skip to content

Commit

Permalink
Revert "Disable Dashboard"
Browse files Browse the repository at this point in the history
  • Loading branch information
jbamlee authored Feb 27, 2024
1 parent 873d691 commit ea84b60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
21 changes: 7 additions & 14 deletions src/layouts/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ 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 @@ -191,19 +190,13 @@ const Sidebar = () => {
</div>
) : (
<div>
<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="/"
className={location.pathname?.includes("/pairs") ? "active" : ""}
onClick={() => close()}
>
Dashboard
</NavLink>
<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 ea84b60

Please sign in to comment.