Skip to content

Commit

Permalink
Merge pull request #178 from terraswap/chore/enable-dashboard
Browse files Browse the repository at this point in the history
Enable dashboard
  • Loading branch information
JoowonYun authored Oct 20, 2023
2 parents ca44a21 + c061414 commit 835d971
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 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,17 +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
2 changes: 1 addition & 1 deletion src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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 835d971

Please sign in to comment.