Skip to content

Commit

Permalink
Merge pull request #849 from Conflux-Chain/dev
Browse files Browse the repository at this point in the history
feat: update outside link
  • Loading branch information
0x74616e67 authored Oct 26, 2022
2 parents 6a482c2 + 8947598 commit b903908
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
16 changes: 9 additions & 7 deletions src/app/containers/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,20 @@ export function Footer() {
{t(translations.footer.fluentwallet)}
</Link>
);
const bountyLink = (
const hubLink = (
<Link
className="footer-link"
href="https://bounty.confluxnetwork.org"
href={
NETWORK_TYPE === NETWORK_TYPES.testnet
? 'https://test.confluxhub.io/'
: 'https://confluxhub.io/'
}
ga={{
category: ScanEvent.menu.category,
action: ScanEvent.menu.action.confluxBounty,
action: ScanEvent.menu.action.hub,
}}
>
{t(translations.footer.confluxbounty)}
{t(translations.footer.hub)}
</Link>
);
const privacyPolicy = (
Expand Down Expand Up @@ -382,9 +386,7 @@ export function Footer() {
<FooterContentRow>
<FooterContentLink>{websiteLink}</FooterContentLink>
<FooterContentLink>{portalLink}</FooterContentLink>
{IS_FOREIGN_HOST && (
<FooterContentLink>{bountyLink}</FooterContentLink>
)}
<FooterContentLink>{hubLink}</FooterContentLink>
</FooterContentRow>
</FooterContent>
</FooterContentWrapper>
Expand Down
8 changes: 4 additions & 4 deletions src/app/containers/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ export const Header = memo(() => {
afterClick: menuClick,
href: iszh
? NETWORK_TYPE === NETWORK_TYPES.testnet
? 'https://test.confluxhub.io/governance/dashboard'
: 'https://governance.confluxnetwork.org/zh/'
? 'https://test.confluxhub.io/governance/'
: 'https://confluxhub.io/governance/'
: NETWORK_TYPE === NETWORK_TYPES.testnet
? 'https://test.confluxhub.io/governance/dashboard'
: 'https://governance.confluxnetwork.org/en/',
? 'https://test.confluxhub.io/governance/'
: 'https://confluxhub.io/governance/',
});

contractItems.splice(2, 0, {
Expand Down
2 changes: 1 addition & 1 deletion src/app/containers/NFTAsset/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export function NFTAsset({
current={page}
defaultPageSize={pageSize}
total={paginationTotal}
pageSizeOptions={['12', '24', '60', '120']}
pageSizeOptions={['12', '24', '60']}
onChange={handlePaginationChange}
/>
</NFTWrapper>
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Promise.all([completeDetect()]).then(() => {
render(App);
});

const currentVersion = 'v2.16.0';
const currentVersion = 'v2.16.2';

const brand = `
┌─┐┌─┐┌┐┌┌─┐┬ ┬ ┬─┐ ┬ ┌─┐┌─┐┌─┐┌┐┌ ${currentVersion}
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
"stakingAndGovernance": "Staking & Governance",
"developerAPI": "API Documentation",
"fcCfx": "FC-CFX Non-reversible Exchange",
"crossSpace": "Conflux Hub",
"crossSpace": "ConfluxHub",
"more": "More",
"tools": "Tools",
"balanceChecker": "Balance Checker",
Expand Down Expand Up @@ -524,6 +524,7 @@
"confluxnetwork": "Conflux Network",
"fluentwallet": "Fluent Wallet",
"confluxbounty": "ConfluxBounty",
"hub": "ConfluxHub",
"copryRight": "© 2022 Conflux. All Rights Reserved.",
"tool": "Tool",
"addressFormatConversion": "Address Format Conversion",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh_cn/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
"stakingAndGovernance": "质押 & 治理",
"developerAPI": "API 文档",
"fcCfx": "FC-CFX 不可逆兑换",
"crossSpace": "Conflux Hub",
"crossSpace": "ConfluxHub",
"more": "更多",
"tools": "工具",
"balanceChecker": "余额检索器",
Expand Down Expand Up @@ -523,6 +523,7 @@
"confluxnetwork": "Conflux Network",
"fluentwallet": "Fluent Wallet",
"confluxbounty": "ConfluxBounty",
"hub": "ConfluxHub",
"copryRight": "© 2022 Conflux. All Rights Reserved.",
"tool": "工具",
"addressFormatConversion": "地址格式转换",
Expand Down
1 change: 1 addition & 0 deletions src/utils/gaConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const ScanEvent = {
confluxNetwork: 'official_website',
fluentWallet: 'portal',
confluxBounty: 'bounty',
hub: 'confluxhub',
addressConverter: 'address_converter',
faucet: 'faucet',
tools: 'tools',
Expand Down

0 comments on commit b903908

Please sign in to comment.