aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-12-14 10:19:36 +0800
committerGitHub <noreply@github.com>2018-12-14 10:19:36 +0800
commit30a2be85eebe4f6b8cddb297f14faba392fe1133 (patch)
tree34cec0a1910e9e16bbed103d4b0f65f61724f8fb /ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js
parent435fdae84ac49b1366b8737215d97bd82002dccf (diff)
downloadtangerine-wallet-browser-30a2be85eebe4f6b8cddb297f14faba392fe1133.tar.gz
tangerine-wallet-browser-30a2be85eebe4f6b8cddb297f14faba392fe1133.tar.zst
tangerine-wallet-browser-30a2be85eebe4f6b8cddb297f14faba392fe1133.zip
Prevent users from changing the From field in the send screen (#5922)
* Prevent users from changing the From field in the send screen * Fix integration tests
Diffstat (limited to 'ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js')
-rw-r--r--ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js b/ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js
deleted file mode 100644
index d512f7d0b..000000000
--- a/ui/app/components/send/send-content/send-from-row/from-dropdown/from-dropdown.component.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import React, { Component } from 'react'
-import PropTypes from 'prop-types'
-import AccountListItem from '../../../account-list-item/'
-import SendDropdownList from '../../send-dropdown-list/'
-
-export default class FromDropdown extends Component {
-
- static propTypes = {
- accounts: PropTypes.array,
- closeDropdown: PropTypes.func,
- dropdownOpen: PropTypes.bool,
- onSelect: PropTypes.func,
- openDropdown: PropTypes.func,
- selectedAccount: PropTypes.object,
- }
-
- static contextTypes = {
- t: PropTypes.func,
- }
-
- render () {
- const {
- accounts,
- closeDropdown,
- dropdownOpen,
- openDropdown,
- selectedAccount,
- onSelect,
- } = this.props
-
- return <div className="send-v2__from-dropdown">
- <AccountListItem
- account={selectedAccount}
- handleClick={openDropdown}
- icon={<i className={`fa fa-caret-down fa-lg`} style={ { color: '#dedede' } }/>}
- />
- {dropdownOpen && <SendDropdownList
- accounts={accounts}
- closeDropdown={closeDropdown}
- onSelect={onSelect}
- activeAddress={selectedAccount.address}
- />}
- </div>
- }
-
-}