dashboard of Bytom
Revision | 89dc978f5a1b47d3a852b70f391eb7d7bae857cf (tree) |
---|---|
Zeit | 2021-08-30 17:57:09 |
Autor | j <coffce404@gmai...> |
Commiter | j |
fix: update docs url
@@ -4,7 +4,7 @@ import { Link } from 'react-router' | ||
4 | 4 | import styles from './Navigation.scss' |
5 | 5 | import { navIcon } from '../../utils' |
6 | 6 | import Sync from '../Sync/Sync' |
7 | -import { docsRoot, equityRoot, releaseUrl } from '../../../../utility/environment' | |
7 | +import { docsRoot, docsRootZH, equityRoot, releaseUrl } from '../../../../utility/environment' | |
8 | 8 | import { capitalize } from 'utility/string' |
9 | 9 | import { withNamespaces } from 'react-i18next' |
10 | 10 | import actions from 'actions' |
@@ -101,7 +101,7 @@ class Navigation extends React.Component { | ||
101 | 101 | </div> |
102 | 102 | )} |
103 | 103 | <li> |
104 | - <a href={docsRoot} target="_blank"> | |
104 | + <a href={this.props.lng === 'zh' ? docsRootZH : docsRoot} target="_blank"> | |
105 | 105 | {/* {navIcon('docs', styles)} */} |
106 | 106 | <img src={require('images/navigation/docs.svg')}/> |
107 | 107 | {capitalize(t('crumbName.doc'))} |
@@ -40,6 +40,7 @@ export const federationApiHost = `${window.location.protocol}//${window.location | ||
40 | 40 | export const testnetInfoUrl = process.env.TESTNET_INFO_URL || 'https://testnet-info.chain.com' |
41 | 41 | export const testnetUrl = process.env.TESTNET_GENERATOR_URL || 'https://testnet.chain.com' |
42 | 42 | export const equityRoot = process.env.TARGET === 'electron' ? 'http://localhost:9888/equity' : '/equity' |
43 | -export const docsRoot = 'https://github.com/Bytom/bytom/wiki' | |
43 | +export const docsRoot = 'https://developer.bytom.io/' | |
44 | +export const docsRootZH = 'https://developer.bytom.io/zh/' | |
44 | 45 | |
45 | 46 | export const releaseUrl = 'https://github.com/Bytom/bytom/releases' |