diff --git a/src/pages/draw/index.tsx b/src/pages/draw/index.tsx index 197f16b..f8f4d46 100644 --- a/src/pages/draw/index.tsx +++ b/src/pages/draw/index.tsx @@ -13,6 +13,7 @@ import Header from '@/components/Header'; import styles from './style.less'; import h5plus from '@/utils/h5plus'; +import { displayLabel } from '@/utils/transform'; const Option = Select.Option; @@ -44,7 +45,7 @@ const DrawPage: React.FC = ({
{formatMessage({ id: 'common.loadError' })}
); } else if (pageState === PageState.Success) { - const coinLabel = coin && coin.label.toUpperCase(); + const coinLabel = displayLabel(coin && coin.label); const onScan = async () => { if (h5plus.isApp()) { const result = await h5plus.scan(); @@ -99,7 +100,7 @@ const DrawPage: React.FC = ({ + >{displayLabel(it.label)} ))} diff --git a/src/pages/mine/index.tsx b/src/pages/mine/index.tsx index 6b2e50d..2da82e1 100644 --- a/src/pages/mine/index.tsx +++ b/src/pages/mine/index.tsx @@ -14,6 +14,7 @@ import { PageState } from '@/types/common'; import Header from '@/components/Header'; import styles from './style.less'; +import { displayLabel } from '@/utils/transform'; const Option = Select.Option; @@ -56,7 +57,7 @@ const MinePage: React.FC = ({ + >{displayLabel(it.label)} ))} @@ -67,14 +68,14 @@ const MinePage: React.FC = ({ value={srcValue} onChange={e => dispatch({ type: 'mine/changeSrc', payload: e.target.value })} type="number" - /> {coin && coin.label.toUpperCase()} = {dstValue} {formatMessage({ id: 'mine.mine' })} + /> {displayLabel(coin && coin.label)} = {dstValue} {formatMessage({ id: 'mine.mine' })}
-
{formatMessage({ id: 'mine.addressTitle' }, { label: coin && coin.label.toUpperCase() })}
+
{formatMessage({ id: 'mine.addressTitle' }, { label: displayLabel(coin && coin.label) })}