Skip to content

Commit

Permalink
SOV-1841: final dapp cleanup (#2504)
Browse files Browse the repository at this point in the history
* feat: update Zero Banner

* feat: update Zero URLs

* feat: remove Zero Labs menu links
  • Loading branch information
soulBit authored Mar 16, 2023
1 parent b9a97e5 commit 099528f
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ 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,
myntUrl,
isMainnet,
isStaging,
} from 'utils/classifiers';
import { bitocracyUrl, myntUrl } 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 All @@ -51,8 +45,6 @@ type PagesProps = {
disabled?: boolean;
};

const showZero = isMainnet || isStaging;

export const DefaultHeaderComponent: React.FC = () => {
const { t } = useTranslation();
const history = useHistory();
Expand Down Expand Up @@ -122,15 +114,6 @@ export const DefaultHeaderComponent: React.FC = () => {
},
];

if (showZero) {
labPages.push({
to: zeroUrl,
title: t(translations.mainMenu.zero),
dataActionId: 'header-mobile-lab-link-zero',
hrefExternal: true,
});
}

const pages: PagesProps[] = [
{
to: '',
Expand Down Expand Up @@ -449,15 +432,6 @@ export const DefaultHeaderComponent: React.FC = () => {
disabled
dataActionId="header-lab-link-mynt-token"
/>
{showZero && (
<MenuItem
text={t(translations.mainMenu.zero)}
label={t(translations.mainMenu.labels.zero)}
href={zeroUrl}
hrefExternal
dataActionId="header-lab-link-zero"
/>
)}
</>
}
>
Expand Down
Loading

0 comments on commit 099528f

Please sign in to comment.