Skip to content

Commit

Permalink
remove token page
Browse files Browse the repository at this point in the history
  • Loading branch information
pingustar committed Nov 20, 2023
1 parent 5580a44 commit ebc614d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 38 deletions.
9 changes: 2 additions & 7 deletions src/elements/layoutHeader/LayoutHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,8 @@ export const LayoutHeader = () => {
<Navigate to={BancorURL.earn}>
<IconBancor className="w-[18px]" />
</Navigate>
<TopMenuDropdown
items={[
{ title: 'Trade', link: BancorURL.trade() },
{ title: 'Tokens', link: BancorURL.tokens },
]}
className="w-[75px]"
/>

<Navigate to={BancorURL.trade()}>Trade</Navigate>

<Navigate to={BancorURL.earn}>Pools</Navigate>
<TopMenuDropdown
Expand Down
7 changes: 0 additions & 7 deletions src/elements/settings/SettingsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ReactComponent as IconReddit } from 'assets/icons/reddit.svg';
import { ReactComponent as IconTelegram } from 'assets/icons/telegram.svg';
import { ReactComponent as IconDiscord } from 'assets/icons/discord.svg';
import { ReactComponent as IconVote } from 'assets/icons/vote.svg';
import { ReactComponent as IconCoins } from 'assets/icons/coins.svg';
import { ReactComponent as IconForum } from 'assets/icons/forum.svg';
import { DarkMode } from './DarkMode';
import { Navigate } from 'components/navigate/Navigate';
Expand Down Expand Up @@ -37,12 +36,6 @@ export const SettingsMenuContent = ({ mobile }: { mobile?: boolean }) => {
<div className="flex flex-col gap-[25px]">
{mobile ? (
<>
<Navigate to={BancorURL.tokens}>
<div className="flex items-center gap-10 text-black dark:text-white">
<IconCoins className="w-20 text-black dark:text-white" />
Tokens
</div>
</Navigate>
<Navigate to={BancorURL.vote}>
<div className="flex items-center gap-10 text-black dark:text-white">
<IconVote className="w-20 text-black dark:text-white" />
Expand Down
19 changes: 0 additions & 19 deletions src/pages/Tokens.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/router/useRoutesMain.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Navigate, RouteObject } from 'react-router-dom';
import { Tokens } from 'pages/Tokens';
import { Fiat } from 'pages/Fiat';
import { Vote } from 'pages/vote/Vote';
import { TermsOfUse } from 'pages/TermsOfUse';
Expand All @@ -24,10 +23,6 @@ export const useRoutesMain = (): RouteObject[] => {
path: BancorURL.index,
element: <Navigate to={BancorURL.earn} replace />,
},
{
path: BancorURL.tokens,
element: <Tokens />,
},
{
path: BancorURL.fiat,
element: <Fiat />,
Expand Down

0 comments on commit ebc614d

Please sign in to comment.