diff options
author | Paul Bouchon <mail@bitpshr.net> | 2019-01-31 02:27:33 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2019-01-31 02:27:33 +0800 |
commit | db776b5a02187d4545e3fb2b9dfd33d838145af7 (patch) | |
tree | c657d478d32005b80c8e6aa5e7ec45b075e8e954 /old-ui/app | |
parent | b2813d1113b75df09e9bb9f0781f65a2544adcfb (diff) | |
download | tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar.gz tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar.bz2 tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar.lz tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar.xz tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.tar.zst tangerine-wallet-browser-db776b5a02187d4545e3fb2b9dfd33d838145af7.zip |
EIP-1102 updates (#6006)
* Update privacy notice
* Respond to 1102 messages using tab ID
Diffstat (limited to 'old-ui/app')
-rw-r--r-- | old-ui/app/provider-approval.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/old-ui/app/provider-approval.js b/old-ui/app/provider-approval.js index c4c7ff64d..da128f147 100644 --- a/old-ui/app/provider-approval.js +++ b/old-ui/app/provider-approval.js @@ -4,7 +4,7 @@ import { approveProviderRequest, rejectProviderRequest } from '../../ui/app/acti import { connect } from 'react-redux' class ProviderApproval extends Component { render () { - const { approveProviderRequest, origin, rejectProviderRequest } = this.props + const { approveProviderRequest, origin, tabID, rejectProviderRequest } = this.props return ( <div className="flex-column flex-grow"> <style dangerouslySetInnerHTML={{__html: ` @@ -28,7 +28,7 @@ class ProviderApproval extends Component { <div className="section-title flex-row flex-center"> <i className="fa fa-arrow-left fa-lg cursor-pointer" - onClick={() => { rejectProviderRequest(origin) }} /> + onClick={() => { rejectProviderRequest(tabID) }} /> <h2 className="page-subtitle">Web3 API Request</h2> </div> <div className="provider_approval_content"> @@ -38,10 +38,10 @@ class ProviderApproval extends Component { <div className="provider_approval_actions"> <button className="btn-green" - onClick={() => { approveProviderRequest(origin) }}>APPROVE</button> + onClick={() => { approveProviderRequest(tabID) }}>APPROVE</button> <button className="cancel btn-red" - onClick={() => { rejectProviderRequest(origin) }}>REJECT</button> + onClick={() => { rejectProviderRequest(tabID) }}>REJECT</button> </div> </div> ) @@ -51,13 +51,14 @@ class ProviderApproval extends Component { ProviderApproval.propTypes = { approveProviderRequest: PropTypes.func, origin: PropTypes.string, + tabID: PropTypes.string, rejectProviderRequest: PropTypes.func, } function mapDispatchToProps (dispatch) { return { - approveProviderRequest: origin => dispatch(approveProviderRequest(origin)), - rejectProviderRequest: origin => dispatch(rejectProviderRequest(origin)), + approveProviderRequest: tabID => dispatch(approveProviderRequest(tabID)), + rejectProviderRequest: tabID => dispatch(rejectProviderRequest(tabID)), } } |