Skip to content

Commit

Permalink
Merge pull request #846 from Conflux-Chain/dev
Browse files Browse the repository at this point in the history
feat: update footer item
  • Loading branch information
0x74616e67 authored Oct 13, 2022
2 parents 16c302d + 81463b9 commit 6a482c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/app/containers/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { translations } from 'locales/i18n';
import { Language } from './Language';
// import { Currency } from './Currency';
import { ScanEvent } from 'utils/gaConstants';
import { NETWORK_TYPE, NETWORK_TYPES } from 'utils/constants';
import { NETWORK_TYPE, NETWORK_TYPES, IS_FOREIGN_HOST } from 'utils/constants';

import iconWechatQrcode from 'images/footer/wechat-qrcode.png';

Expand Down Expand Up @@ -382,7 +382,9 @@ export function Footer() {
<FooterContentRow>
<FooterContentLink>{websiteLink}</FooterContentLink>
<FooterContentLink>{portalLink}</FooterContentLink>
<FooterContentLink>{bountyLink}</FooterContentLink>
{IS_FOREIGN_HOST && (
<FooterContentLink>{bountyLink}</FooterContentLink>
)}
</FooterContentRow>
</FooterContent>
</FooterContentWrapper>
Expand Down Expand Up @@ -428,8 +430,10 @@ export function Footer() {
</FooterContentTitle>
<FooterContent>
<FooterContentRow>
<FooterContentLink>{privacyPolicy}</FooterContentLink>
<FooterContentLink>{terms}</FooterContentLink>
{IS_FOREIGN_HOST && (
<FooterContentLink>{privacyPolicy}</FooterContentLink>
)}
{IS_FOREIGN_HOST && <FooterContentLink>{terms}</FooterContentLink>}
<FooterContentLink>{supportCenter}</FooterContentLink>
</FooterContentRow>
</FooterContent>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,5 @@ OPEN_API_URLS.CrossSpaceDailyCFXTransfer = '/stat/cross-space-cfx';

// table list list limit, max query items is 10,000, exceed will cause backend error
export const TABLE_LIST_LIMIT = 10000;

export const IS_FOREIGN_HOST = /.io$/.test(window.location.host);

0 comments on commit 6a482c2

Please sign in to comment.