diff --git a/app/extensions/brave/locales/en-US/preferences.properties b/app/extensions/brave/locales/en-US/preferences.properties index e7650a2068c..026c5835689 100644 --- a/app/extensions/brave/locales/en-US/preferences.properties +++ b/app/extensions/brave/locales/en-US/preferences.properties @@ -7,6 +7,7 @@ sync=Sync privacy=Privacy shields=Shields security=Security +visit=visit visits=Visits publisher=Site publishers=Publishers @@ -63,6 +64,7 @@ on=on notifications=notifications moneyAdd=Use your debit/credit card moneyAddSubTitle=No Bitcoin needed! +outsideUSAPayment=Need to buy Bitcoin outside of the USA? coinbaseNotAvailable=Sorry! Adding funds with a credit/debit card is only available for contributions of $5/month at the moment. add=Fund with debit/credit transferTime=Transfer may take up to 40 minutes diff --git a/js/about/preferences.js b/js/about/preferences.js index 1f75bb38821..6a171f168dd 100644 --- a/js/about/preferences.js +++ b/js/about/preferences.js @@ -285,6 +285,10 @@ class BitcoinDashboard extends ImmutableComponent { get canUseCoinbase () { return this.currency === 'USD' && this.amount < 6 } + get userInAmerica () { + const countryCode = this.props.ledgerData.get('countryCode') + return !(countryCode && countryCode !== 'US') + } get coinbasePanel () { if (this.canUseCoinbase) { return
@@ -311,6 +315,26 @@ class BitcoinDashboard extends ImmutableComponent {
} } + get exchangePanel () { + const url = this.props.ledgerData.getIn(['exchangeInfo', 'exchangeURL']) + const name = this.props.ledgerData.getIn(['exchangeInfo', 'exchangeName']) + // Call coinbasePanel if we don't have the URL or Name + if (!url || !name) { + return this.coinbasePanel + } else { + return
+
+ +
+
+
+ + {name} + +
+
+ } + } get smartphonePanel () { return
@@ -362,7 +386,10 @@ class BitcoinDashboard extends ImmutableComponent { : null }
- {this.coinbasePanel} + { (this.userInAmerica) + ? this.coinbasePanel + : this.exchangePanel + }