Skip to content

Commit

Permalink
fix: broken menu URLs (#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulBit authored Jun 16, 2022
1 parent c833c26 commit e7c43d4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ import {
import { LanguageToggle } from '../../../../components/LanguageToggle';
import styles from './index.module.scss';
import { ReactComponent as SovLogo } from 'assets/images/sovryn-logo-alpha.svg';
import { bitocracyUrl, zeroUrl, isMainnet, isStaging } from 'utils/classifiers';
import {
bitocracyUrl,
zeroUrl,
myntUrl,
isMainnet,
isStaging,
} from 'utils/classifiers';
import { Menu } from 'app/components/Menu';
import { MenuItem } from 'app/components/Menu/components/MenuItem';
import { MenuSeparator } from 'app/components/Menu/components/MenuSeparator';
Expand Down Expand Up @@ -109,7 +115,7 @@ export const DefaultHeaderComponent: React.FC = () => {
dataActionId: 'header-mobile-lab-link-claim',
},
{
to: '/mynt-token',
to: myntUrl,
title: t(translations.mainMenu.myntToken),
dataActionId: 'header-mobile-lab-link-mynt-token',
},
Expand Down Expand Up @@ -445,14 +451,16 @@ export const DefaultHeaderComponent: React.FC = () => {
<MenuItem
text={t(translations.mainMenu.myntToken)}
label={t(translations.mainMenu.labels.myntToken)}
href="/mynt-token"
href={myntUrl}
hrefExternal
dataActionId="header-lab-link-mynt-token"
/>
{showZero && (
<MenuItem
text={t(translations.mainMenu.zero)}
label={t(translations.mainMenu.labels.zero)}
href="/zero"
href={zeroUrl}
hrefExternal
dataActionId="header-lab-link-zero"
/>
)}
Expand Down
7 changes: 7 additions & 0 deletions src/utils/classifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ export const zeroUrl =
: 'https://live.sovryn.app/zero'
: 'https://test.sovryn.app/zero';

export const myntUrl =
currentNetwork === AppMode.MAINNET
? isStaging
? 'https://staging.sovryn.app/mynt-token'
: 'https://live.sovryn.app/mynt-token'
: 'https://test.sovryn.app/mynt-token';

export const databaseRpcNodes = {
30: 'https://backend.sovryn.app/rpc',
31: 'https://api.test.sovryn.app/rpc',
Expand Down

0 comments on commit e7c43d4

Please sign in to comment.