aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorChen Wei <chenwei@byzantine-lab.io>2019-07-03 14:27:02 +0800
committerChen Wei <chenwei@byzantine-lab.io>2019-07-03 14:27:02 +0800
commit20e9132dcdc6910302dde7378ba6e6ce28603519 (patch)
treecc656550c779bae973b88f67b4cc6690d8f009c7 /ui/app/components
parent9063fba5314a18e057125efcaaac2441e7d13a74 (diff)
downloadtangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar.gz
tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar.zst
tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.zip
it seems safer to have workaround in UI layer instead of changing the constants or logic
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/app/gas-customization/gas-price-button-group/gas-price-button-group.component.js5
-rw-r--r--ui/app/components/ui/currency-display/currency-display.component.js3
-rw-r--r--ui/app/components/ui/unit-input/unit-input.component.js2
3 files changed, 7 insertions, 3 deletions
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 14952a49a..1febef2e5 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
@@ -39,7 +39,10 @@ export default class GasPriceButtonGroup extends Component {
return (<div>
{ labelKey && <div className={`${className}__label`}>{ this.context.t(labelKey) }</div> }
{ timeEstimate && <div className={`${className}__time-estimate`}>{ timeEstimate }</div> }
- { feeInPrimaryCurrency && <div className={`${className}__primary-currency`}>{ feeInPrimaryCurrency }</div> }
+ {feeInPrimaryCurrency && (
+ <div className={`${className}__primary-currency`}>
+ { feeInPrimaryCurrency.replace('ETH', 'TAN') }
+ </div>)}
{ feeInSecondaryCurrency && <div className={`${className}__secondary-currency`}>{ feeInSecondaryCurrency }</div> }
{ showCheck && <div className="button-check-wrapper"><i className="fa fa-check fa-sm" /></div> }
</div>)
diff --git a/ui/app/components/ui/currency-display/currency-display.component.js b/ui/app/components/ui/currency-display/currency-display.component.js
index c15668da3..ce3bb1351 100644
--- a/ui/app/components/ui/currency-display/currency-display.component.js
+++ b/ui/app/components/ui/currency-display/currency-display.component.js
@@ -36,7 +36,8 @@ export default class CurrencyDisplay extends PureComponent {
{
suffix && (
<span className="currency-display-component__suffix">
- { suffix }
+ {/* This might be the safiest workaround XD */}
+ { (suffix === 'ETH') ? 'TAN' : suffix }
</span>
)
}
diff --git a/ui/app/components/ui/unit-input/unit-input.component.js b/ui/app/components/ui/unit-input/unit-input.component.js
index 9085a0677..be1d0a5d0 100644
--- a/ui/app/components/ui/unit-input/unit-input.component.js
+++ b/ui/app/components/ui/unit-input/unit-input.component.js
@@ -96,7 +96,7 @@ export default class UnitInput extends PureComponent {
{
suffix && (
<div className="unit-input__suffix">
- { suffix }
+ { (suffix === 'ETH') ? 'TAN' : suffix}
</div>
)
}