aboutsummaryrefslogtreecommitdiffstats
path: root/development/selector.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-02-22 07:46:31 +0800
committerGitHub <noreply@github.com>2018-02-22 07:46:31 +0800
commiteed75735b8e90d121537249cf147c1ece60f1e47 (patch)
treec7cfc9bea782df7035761caa8c1809d8fde58824 /development/selector.js
parent16754fa30744df8b3b3edc0e5229db29f3ad23ec (diff)
parente27a3823ba2595baa7c3378e6a6f2aa5dae30250 (diff)
downloadtangerine-wallet-browser-eed75735b8e90d121537249cf147c1ece60f1e47.tar.gz
tangerine-wallet-browser-eed75735b8e90d121537249cf147c1ece60f1e47.tar.zst
tangerine-wallet-browser-eed75735b8e90d121537249cf147c1ece60f1e47.zip
Merge pull request #3050 from MetaMask/uat
[EPIC] Merge UAT into master
Diffstat (limited to 'development/selector.js')
-rw-r--r--development/selector.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/development/selector.js b/development/selector.js
index c466905ca..fd387df15 100644
--- a/development/selector.js
+++ b/development/selector.js
@@ -11,7 +11,14 @@ function NewComponent () {
NewComponent.prototype.render = function () {
const props = this.props
- let { states, selectedKey, actions, store } = props
+ let {
+ states,
+ selectedKey,
+ actions,
+ store,
+ modifyBackgroundConnection,
+ backGroundConnectionModifiers,
+ } = props
const state = this.state || {}
const selected = state.selected || selectedKey
@@ -23,6 +30,8 @@ NewComponent.prototype.render = function () {
value: selected,
onChange:(event) => {
const selectedKey = event.target.value
+ const backgroundConnectionModifier = backGroundConnectionModifiers[selectedKey]
+ modifyBackgroundConnection(backgroundConnectionModifier || {})
store.dispatch(actions.update(selectedKey))
this.setState({ selected: selectedKey })
},