From 3d258d088abb3de8baa039d9def2fe8b00dd5f02 Mon Sep 17 00:00:00 2001 From: Chen Wei Date: Thu, 4 Jul 2019 10:24:17 +0800 Subject: replace some wordings --- .../advanced-tab-content.component.js | 27 +++++++++++----------- .../gas-modal-page-container.component.js | 6 ++--- .../gas-price-button-group.component.js | 2 +- 3 files changed, 17 insertions(+), 18 deletions(-) (limited to 'ui/app/components') diff --git a/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/advanced-tab-content.component.js b/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/advanced-tab-content.component.js index eab3434df..000432d8a 100644 --- a/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/advanced-tab-content.component.js +++ b/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/advanced-tab-content.component.js @@ -124,7 +124,7 @@ export default class AdvancedTabContent extends Component {
- {transactionFee} + {(transactionFee || '').replace('ETH', 'TAN')}
{timeRemaining}
@@ -204,20 +204,19 @@ export default class AdvancedTabContent extends Component { customPriceIsSafe, isSpeedUp, }) } - { isEthereumNetwork - ?
-
{ t('liveGasPricePredictions') }
- {!gasEstimatesLoading - ? - : - } -
- { t('slower') } - { t('faster') } -
+ { isEthereumNetwork && ( +
+
{ t('liveGasPricePredictions') }
+ {!gasEstimatesLoading + ? + : + } +
+ { t('slower') } + { t('faster') } +
- :
{ t('chartOnlyAvailableEth') }
- } + )}
) diff --git a/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js b/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js index e18c1067e..ec22c9455 100644 --- a/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js +++ b/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js @@ -103,15 +103,15 @@ export default class GasModalPageContainer extends Component {
{this.context.t('sendAmount')} - {sendAmount} + {(sendAmount || '').replace('ETH', 'TAN')}
{this.context.t('transactionFee')} - {transactionFee} + {(transactionFee || '').replace('ETH', 'TAN')}
{this.context.t('newTotal')} - {newTotalEth} + {(newTotalEth || '').replace('ETH', 'TAN')}
{newTotalFiat} diff --git a/ui/app/components/app/gas-customization/gas-price-button-group/gas-price-button-group.component.js b/ui/app/components/app/gas-customization/gas-price-button-group/gas-price-button-group.component.js index 1febef2e5..fccb7d1a4 100644 --- a/ui/app/components/app/gas-customization/gas-price-button-group/gas-price-button-group.component.js +++ b/ui/app/components/app/gas-customization/gas-price-button-group/gas-price-button-group.component.js @@ -41,7 +41,7 @@ export default class GasPriceButtonGroup extends Component { { timeEstimate &&
{ timeEstimate }
} {feeInPrimaryCurrency && (
- { feeInPrimaryCurrency.replace('ETH', 'TAN') } + { (feeInPrimaryCurrency || '').replace('ETH', 'TAN') }
)} { feeInSecondaryCurrency &&
{ feeInSecondaryCurrency }
} { showCheck &&
} -- cgit v1.2.3