aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-menu
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-10-13 14:10:58 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-13 14:11:01 +0800
commit81f62a7443d47461b5f9b20f442392562458c79a (patch)
treeb4c283caec9e6409b69422c36f1010e8f2592b37 /ui/app/components/account-menu
parent57179d2b05a4efae06c2375e01e9a01a5519543b (diff)
downloadtangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar
tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.gz
tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.bz2
tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.lz
tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.xz
tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.tar.zst
tangerine-wallet-browser-81f62a7443d47461b5f9b20f442392562458c79a.zip
Adding Account Dropdown V2
Diffstat (limited to 'ui/app/components/account-menu')
-rw-r--r--ui/app/components/account-menu/index.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js
new file mode 100644
index 000000000..7dc3d10a5
--- /dev/null
+++ b/ui/app/components/account-menu/index.js
@@ -0,0 +1,56 @@
+const inherits = require('util').inherits
+const Component = require('react').Component
+const connect = require('react-redux').connect
+const h = require('react-hyperscript')
+const actions = require('../../actions')
+const { Menu, Item, Divider } = require('../dropdowns/components/menu')
+
+module.exports = connect(mapStateToProps, mapDispatchToProps)(AccountMenu)
+
+inherits(AccountMenu, Component)
+function AccountMenu () { Component.call(this) }
+
+function mapStateToProps (state) {
+ return {
+ selectedAddress: state.metamask.selectedAddress,
+ }
+}
+
+function mapDispatchToProps () {
+ return {}
+}
+
+AccountMenu.prototype.render = function () {
+ return h(Menu, { className: 'account-menu' }, [
+ h(Item, { className: 'account-menu__header' }, [
+ 'My Accounts',
+ h('button.account-menu__logout-button', 'Log out'),
+ ]),
+ h(Divider),
+ h(Item, { text: 'hi' }),
+ h(Divider),
+ h(Item, {
+ onClick: true,
+ icon: h('img', { src: 'images/plus-btn-white.svg' }),
+ text: 'Create Account',
+ }),
+ h(Item, {
+ onClick: true,
+ icon: h('img', { src: 'images/import-account.svg' }),
+ text: 'Import Account',
+ }),
+ h(Divider),
+ h(Item, {
+ onClick: true,
+ icon: h('img', { src: 'images/mm-info-icon.svg' }),
+ text: 'Info & Help',
+ }),
+ h(Item, {
+ onClick: true,
+ icon: h('img', { src: 'images/settings.svg' }),
+ text: 'Settings',
+ }),
+ ])
+}
+
+