@@ -18,6 +18,7 @@ const appConfig = require('../constants/appConfig')
18
18
const preferenceTabs = require ( '../constants/preferenceTabs' )
19
19
const messages = require ( '../constants/messages' )
20
20
const settings = require ( '../constants/settings' )
21
+ const coinbaseCountries = require ( '../constants/coinbaseCountries' )
21
22
const { passwordManagers, extensionIds} = require ( '../constants/passwordManagers' )
22
23
const aboutActions = require ( './aboutActions' )
23
24
const getSetting = require ( '../settings' ) . getSetting
@@ -300,11 +301,15 @@ class BitcoinDashboard extends ImmutableComponent {
300
301
</ div >
301
302
}
302
303
get qrcodeOverlayFooter ( ) {
303
- return < div >
304
- < div id = 'coinbaseLogo' />
305
- < div id = 'appstoreLogo' />
306
- < div id = 'playstoreLogo' />
307
- </ div >
304
+ if ( coinbaseCountries . indexOf ( this . props . ledgerData . get ( 'countryCode' ) ) > - 1 ) {
305
+ return < div >
306
+ < div id = 'coinbaseLogo' />
307
+ < a href = 'https://itunes.apple.com/us/app/coinbase-bitcoin-wallet/id886427730?mt=8' target = '_blank' id = 'appstoreLogo' />
308
+ < a href = 'https://play.google.com/store/apps/details?id=com.coinbase.android' target = '_blank' id = 'playstoreLogo' />
309
+ </ div >
310
+ } else {
311
+ return null
312
+ }
308
313
}
309
314
get currency ( ) {
310
315
return this . props . ledgerData . get ( 'currency' ) || 'USD'
@@ -319,6 +324,19 @@ class BitcoinDashboard extends ImmutableComponent {
319
324
const countryCode = this . props . ledgerData . get ( 'countryCode' )
320
325
return ! ( countryCode && countryCode !== 'US' )
321
326
}
327
+ get worldWidePanel ( ) {
328
+ return < div className = 'panel' >
329
+ < div className = 'settingsPanelDivider' >
330
+ < span className = 'fa fa-credit-card' />
331
+ < div className = 'settingsListTitle' data-l10n-id = 'outsideUSAPayment' />
332
+ </ div >
333
+ < div className = 'settingsPanelDivider' >
334
+ < a target = '_blank' className = 'browserButton primaryButton' href = 'https://www.buybitcoinworldwide.com/' >
335
+ buybitcoinworldwide.com
336
+ </ a >
337
+ </ div >
338
+ </ div >
339
+ }
322
340
get coinbasePanel ( ) {
323
341
if ( this . canUseCoinbase ) {
324
342
return < div className = 'panel' >
@@ -348,9 +366,9 @@ class BitcoinDashboard extends ImmutableComponent {
348
366
get exchangePanel ( ) {
349
367
const url = this . props . ledgerData . getIn ( [ 'exchangeInfo' , 'exchangeURL' ] )
350
368
const name = this . props . ledgerData . getIn ( [ 'exchangeInfo' , 'exchangeName' ] )
351
- // Call coinbasePanel if we don't have the URL or Name
369
+ // Call worldWidePanel if we don't have the URL or Name
352
370
if ( ! url || ! name ) {
353
- return this . coinbasePanel
371
+ return this . worldWidePanel
354
372
} else {
355
373
return < div className = 'panel' >
356
374
< div className = 'settingsPanelDivider' >
@@ -377,11 +395,15 @@ class BitcoinDashboard extends ImmutableComponent {
377
395
</ div >
378
396
}
379
397
get panelFooter ( ) {
380
- return < div className = 'panelFooter' >
381
- < div id = 'coinbaseLogo' />
382
- < span className = 'coinbaseMessage' data-l10n-id = 'coinbaseMessage' />
383
- < Button l10nId = 'done' className = 'pull-right whiteButton' onClick = { this . props . hideParentOverlay } />
384
- </ div >
398
+ if ( coinbaseCountries . indexOf ( this . props . ledgerData . get ( 'countryCode' ) ) > - 1 ) {
399
+ return < div className = 'panelFooter' >
400
+ < div id = 'coinbaseLogo' />
401
+ < span className = 'coinbaseMessage' data-l10n-id = 'coinbaseMessage' />
402
+ < Button l10nId = 'done' className = 'pull-right whiteButton' onClick = { this . props . hideParentOverlay } />
403
+ </ div >
404
+ } else {
405
+ return null
406
+ }
385
407
}
386
408
copyToClipboard ( text ) {
387
409
aboutActions . setClipboard ( text )
@@ -843,6 +865,14 @@ class PaymentsTab extends ImmutableComponent {
843
865
siteSettings = { this . props . siteSettings } />
844
866
}
845
867
868
+ get overlayTitle ( ) {
869
+ if ( coinbaseCountries . indexOf ( this . props . ledgerData . get ( 'countryCode' ) ) > - 1 ) {
870
+ return 'addFunds'
871
+ } else {
872
+ return 'addFundsAlternate'
873
+ }
874
+ }
875
+
846
876
get overlayContent ( ) {
847
877
return < BitcoinDashboard ledgerData = { this . props . ledgerData }
848
878
settings = { this . props . settings }
@@ -1114,7 +1144,7 @@ class PaymentsTab extends ImmutableComponent {
1114
1144
return < div id = 'paymentsContainer' >
1115
1145
{
1116
1146
this . enabled && this . props . addFundsOverlayVisible
1117
- ? < ModalOverlay title = { 'addFunds' } content = { this . overlayContent } onHide = { this . props . hideOverlay . bind ( this , 'addFunds' ) } />
1147
+ ? < ModalOverlay title = { this . overlayTitle } content = { this . overlayContent } onHide = { this . props . hideOverlay . bind ( this , 'addFunds' ) } />
1118
1148
: null
1119
1149
}
1120
1150
{
0 commit comments