aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-10 07:17:52 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-10 09:24:14 +0800
commit71d6463984f040b2aa495a13429f6ea3505defaf (patch)
treef10f80e5de5b80f8e9967f1fccb0ab129cf266b2 /ui/app/send-v2.js
parent80463072b5c0c9e826582e066fbc962b667ee355 (diff)
downloadtangerine-wallet-browser-71d6463984f040b2aa495a13429f6ea3505defaf.tar
tangerine-wallet-browser-71d6463984f040b2aa495a13429f6ea3505defaf.tar.gz
tangerine-wallet-browser-71d6463984f040b2aa495a13429f6ea3505defaf.tar.bz2
tangerine-wallet-browser-71d6463984f040b2aa495a13429f6ea3505defaf.tar.lz
tangerine-wallet-browser-71d6463984f040b2aa495a13429f6ea3505defaf.tar.xz
tangerine-wallet-browser-71d6463984f040b2aa495a13429f6ea3505defaf.tar.zst
tangerine-wallet-browser-71d6463984f040b2aa495a13429f6ea3505defaf.zip
Refactor 'rendersingleidentity' to a stand alone account-list-item component.
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 53e63b784..e0d7c2394 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -2,13 +2,12 @@ const { inherits } = require('util')
const PersistentForm = require('../lib/persistent-form')
const h = require('react-hyperscript')
const connect = require('react-redux').connect
-const Identicon = require('./components/identicon')
const FromDropdown = require('./components/send/from-dropdown')
module.exports = connect(mapStateToProps)(SendTransactionScreen)
function mapStateToProps (state) {
- const mockIdentities = Array.from(new Array(5))
+ const mockAccounts = Array.from(new Array(5))
.map((v, i) => ({
identity: {
name: `Test Account Name ${i}`,
@@ -20,7 +19,7 @@ function mapStateToProps (state) {
}
}))
- return { identities: mockIdentities }
+ return { accounts: mockAccounts }
}
inherits(SendTransactionScreen, PersistentForm)
@@ -43,7 +42,7 @@ function SendTransactionScreen () {
}
SendTransactionScreen.prototype.render = function () {
- const { identities } = this.props
+ const { accounts } = this.props
const { dropdownOpen } = this.state
return (
@@ -75,8 +74,8 @@ SendTransactionScreen.prototype.render = function () {
h(FromDropdown, {
dropdownOpen,
- identities,
- selectedIdentity: identities[0],
+ accounts,
+ selectedAccount: accounts[0],
setFromField: () => console.log('Set From Field'),
openDropdown: () => this.setState({ dropdownOpen: true }),
closeDropdown: () => this.setState({ dropdownOpen: false }),