diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-02-07 02:20:37 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-02-07 02:20:37 +0800 |
commit | a7bfea51e587f0edda6804f32f512f7ace9b5aed (patch) | |
tree | 75def952eb601c25484df571b75401fc67b6e357 /development/selector.js | |
parent | d452403322c517eee4fc6120de1ead68ed65ee6a (diff) | |
download | tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.gz tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.bz2 tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.lz tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.xz tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.zst tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.zip |
Integration tests for signature requests confirmations. (#3194)
Diffstat (limited to 'development/selector.js')
-rw-r--r-- | development/selector.js | 11 |
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 }) }, |