diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-02-15 05:03:21 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-02-21 01:48:46 +0800 |
commit | 3c73781787f7aab6cdba0b738e4844a26aab5d8e (patch) | |
tree | 5a98f0acdcda6d3dd1a8368be6bb0ddf77c8fa6a /old-ui/app/provider-approval.js | |
parent | 41f89ac7edf994f3d15d32d3d82d8d2b03dec481 (diff) | |
download | tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.gz tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.bz2 tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.lz tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.xz tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.zst tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.zip |
Delete old-ui folder
Diffstat (limited to 'old-ui/app/provider-approval.js')
-rw-r--r-- | old-ui/app/provider-approval.js | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/old-ui/app/provider-approval.js b/old-ui/app/provider-approval.js deleted file mode 100644 index da128f147..000000000 --- a/old-ui/app/provider-approval.js +++ /dev/null @@ -1,65 +0,0 @@ -import PropTypes from 'prop-types' -import React, { Component } from 'react' -import { approveProviderRequest, rejectProviderRequest } from '../../ui/app/actions' -import { connect } from 'react-redux' -class ProviderApproval extends Component { - render () { - const { approveProviderRequest, origin, tabID, rejectProviderRequest } = this.props - return ( - <div className="flex-column flex-grow"> - <style dangerouslySetInnerHTML={{__html: ` - .provider_approval_actions { - display: flex; - justify-content: flex-end; - margin: 14px 25px; - } - .provider_approval_actions button { - margin-left: 10px; - text-transform: uppercase; - } - .provider_approval_content { - padding: 0 25px; - } - .provider_approval_origin { - font-weight: bold; - margin: 14px 0; - } - `}} /> - <div className="section-title flex-row flex-center"> - <i - className="fa fa-arrow-left fa-lg cursor-pointer" - onClick={() => { rejectProviderRequest(tabID) }} /> - <h2 className="page-subtitle">Web3 API Request</h2> - </div> - <div className="provider_approval_content"> - {"The domain listed below is requesting access to the Ethereum blockchain and to view your current account. Always double check that you're on the correct site before approving access."} - <div className="provider_approval_origin">{origin}</div> - </div> - <div className="provider_approval_actions"> - <button - className="btn-green" - onClick={() => { approveProviderRequest(tabID) }}>APPROVE</button> - <button - className="cancel btn-red" - onClick={() => { rejectProviderRequest(tabID) }}>REJECT</button> - </div> - </div> - ) - } -} - -ProviderApproval.propTypes = { - approveProviderRequest: PropTypes.func, - origin: PropTypes.string, - tabID: PropTypes.string, - rejectProviderRequest: PropTypes.func, -} - -function mapDispatchToProps (dispatch) { - return { - approveProviderRequest: tabID => dispatch(approveProviderRequest(tabID)), - rejectProviderRequest: tabID => dispatch(rejectProviderRequest(tabID)), - } -} - -module.exports = connect(null, mapDispatchToProps)(ProviderApproval) |