aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui/app
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-04-13 05:17:36 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-04-24 01:18:05 +0800
commit9e41f58af2f236389f11bd1d401da73c0d709b2d (patch)
treecf3cb4dbc49e4ac9fa4a5d8c4d08c32e9a6e8052 /old-ui/app
parent74c419f9b65841c2966d1fe3b7414bf11e09e0d8 (diff)
downloadtangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar.gz
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar.bz2
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar.lz
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar.xz
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar.zst
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.zip
Clean up network config
Diffstat (limited to 'old-ui/app')
-rw-r--r--old-ui/app/app.js2
-rw-r--r--old-ui/app/components/buy-button-subview.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/old-ui/app/app.js b/old-ui/app/app.js
index fc0d634aa..3aa845b3a 100644
--- a/old-ui/app/app.js
+++ b/old-ui/app/app.js
@@ -35,7 +35,7 @@ const HDCreateVaultComplete = require('./keychains/hd/create-vault-complete')
const HDRestoreVaultScreen = require('./keychains/hd/restore-vault')
const RevealSeedConfirmation = require('./keychains/hd/recover-seed/confirmation')
const AccountDropdowns = require('./components/account-dropdowns').AccountDropdowns
-const { BETA_UI_NETWORK_TYPE } = require('../../app/scripts/config').enums
+const { BETA_UI_NETWORK_TYPE } = require('../../app/scripts/controllers/network/enums')
module.exports = connect(mapStateToProps)(App)
diff --git a/old-ui/app/components/buy-button-subview.js b/old-ui/app/components/buy-button-subview.js
index 56d173839..8bb73ae3e 100644
--- a/old-ui/app/components/buy-button-subview.js
+++ b/old-ui/app/components/buy-button-subview.js
@@ -8,7 +8,7 @@ const ShapeshiftForm = require('./shapeshift-form')
const Loading = require('./loading')
const AccountPanel = require('./account-panel')
const RadioList = require('./custom-radio-list')
-const networkNames = require('../../../app/scripts/config.js').networkNames
+const { getNetworkDisplayName } = require('../../../app/scripts/controllers/network/util')
module.exports = connect(mapStateToProps)(BuyButtonSubview)
@@ -142,7 +142,7 @@ BuyButtonSubview.prototype.primarySubview = function () {
case '3':
case '4':
case '42':
- const networkName = networkNames[network]
+ const networkName = getNetworkDisplayName(network)
const label = `${networkName} Test Faucet`
return (
h('div.flex-column', {