Skip to content

Commit

Permalink
feat: adjust footer (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryenguyen7411 authored Aug 7, 2023
1 parent 46a0ac9 commit cfafbe1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 deletions.
12 changes: 0 additions & 12 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { FormattedMessage } from 'react-intl';

import { mode } from '../../modules/env';
import { Developers, Links, Media, Terms, URL } from '../../modules/links';
import { Atag } from '../../modules/scenes/Common';

Expand Down Expand Up @@ -39,17 +38,6 @@ export const Footer = () => {
</ALink>
</LiLink>
))}
<LiLink>
<ALink
href={mode === 'production' ? URL.SkybridgeTestnet : URL.SkybridgeMainnet}
rel="noopener noreferrer"
target="_blank"
>
<FormattedMessage
id={mode === 'production' ? 'footer.testnet' : 'footer.mainnet'}
/>
</ALink>
</LiLink>
</UlLink>
</ColumnLink>
<ColumnLink>
Expand Down
4 changes: 2 additions & 2 deletions src/modules/i18n/files/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
"toast.transaction-confirmed": "Transaction confirmed",
"toast.view-on-scan": "View on {value}",
"toast.old-explorer": "If you are looking for the BTC-BSC bridge, look here: {link}.",
"footer.what-is-swingby": "What is Swingby?",
"footer.home": "Home",
"footer.earn": "Earn",
"footer.white-paper": "White Paper",
"footer.documentation": "Documentation",
"footer.privacy-policy": "Privacy Policy",
"footer.terms-of-use": "Terms of Use",
"footer.links": "Links",
"footer.developers": "Developers",
"footer.transaction-fees": "Transaction Fees",
"footer.transaction-fees": "Fees",
"footer.mainnet": "Skybridge Mainnet",
"footer.testnet": "Skybridge Testnet",
"footer.erc20": "ERC20 Bridge",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/i18n/files/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"toast.copied-to-address": "送信先アドレスをコピーしました!",
"toast.copied-link-URL": "URLをコピーしました!",
"toast.copied-tx-id": "Transaction IDをコピーしました!",
"footer.what-is-swingby": "What is Swingby?",
"footer.home": "Home",
"footer.earn": "Earn",
"footer.white-paper": "White Paper",
"footer.documentation": "Documentation",
"footer.privacy-policy": "Privacy Policy",
"footer.terms-of-use": "Terms of Use",
"footer.links": "Links",
"footer.developers": "Developers",
"footer.transaction-fees": "Transaction Fees",
"footer.transaction-fees": "Fees",
"footer.mainnet": "Skybridge Mainnet",
"footer.testnet": "Skybridge Testnet",
"home.explorer": "Skybridge Explorer",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/i18n/files/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"toast.copied-to-address": "復制了接收方地址!",
"toast.copied-link-URL": "復制了錢包地址此交易網頁地址!",
"toast.copied-tx-id": "復制了交易哈希!",
"footer.what-is-swingby": "了解Swingby",
"footer.home": "",
"footer.earn": "賺取",
"footer.white-paper": "白皮書",
"footer.documentation": "文檔",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/i18n/files/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"toast.copied-to-address": "复制了接收方地址!",
"toast.copied-link-URL": "复制了钱包地址此交易网页地址!",
"toast.copied-tx-id": "复制了交易哈希!",
"footer.what-is-swingby": "了解Swingby",
"footer.home": "",
"footer.earn": "赚取",
"footer.white-paper": "白皮书",
"footer.documentation": "文档",
Expand Down
10 changes: 4 additions & 6 deletions src/modules/links/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Icon } from '@swingby-protocol/pulsar';

import { PATH } from '../env';

export const URL = {
Swingby: 'https://swingby.network/',
Earn: 'https://swingby.network/earn',
WhatIsSwingby: 'https://swingby.network/about-swingby',
Home: 'https://swingby.network',
WhitePaper: 'https://docs.swingby.network/SwingbySkybridge_WhitePaper_v1.0.0_14112019.pdf',
SwingbyDocs: 'https://skybridge-docs.swingby.network/',
TermsOfUse: 'https://docs.swingby.network/terms.pdf',
Expand All @@ -25,12 +23,12 @@ export const URL = {
YieldFarming: 'https://farm.swingby.network/',
BecomeLiquidityProvider:
'https://skybridge-docs.swingby.network/getting-start/becoming-a-liquidity-provider',
Fees: 'https://skybridge-docs.swingby.network/getting-start/network-fees',
};

export const Links = [
{ link: URL.WhatIsSwingby, description: 'footer.what-is-swingby' },
{ link: URL.Earn, description: 'footer.earn' },
{ link: PATH.FEES, description: 'footer.transaction-fees' },
{ link: URL.Home, description: 'footer.home' },
{ link: URL.Fees, description: 'footer.transaction-fees' },
{ link: URL.Erc20Bridge, description: 'footer.erc20' },
{ link: URL.YieldFarming, description: 'footer.yield-farming' },
];
Expand Down

1 comment on commit cfafbe1

@vercel
Copy link

@vercel vercel bot commented on cfafbe1 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.