aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/home/home.container.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-07-25 02:40:05 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-08-24 07:44:43 +0800
commit3b408715c745030aed6e720e6f19dc8f2aa511d1 (patch)
tree9dd80e685a533f673e7d3af7b70385240c011153 /ui/app/components/pages/home/home.container.js
parentdae07b32e50de8a3aa4c89d266c9272155beaaa4 (diff)
downloadtangerine-wallet-browser-3b408715c745030aed6e720e6f19dc8f2aa511d1.tar.gz
tangerine-wallet-browser-3b408715c745030aed6e720e6f19dc8f2aa511d1.tar.zst
tangerine-wallet-browser-3b408715c745030aed6e720e6f19dc8f2aa511d1.zip
Refactor home screen and remove unused files
Diffstat (limited to 'ui/app/components/pages/home/home.container.js')
-rw-r--r--ui/app/components/pages/home/home.container.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/ui/app/components/pages/home/home.container.js b/ui/app/components/pages/home/home.container.js
new file mode 100644
index 000000000..96a45a69b
--- /dev/null
+++ b/ui/app/components/pages/home/home.container.js
@@ -0,0 +1,34 @@
+import Home from './home.component'
+import { compose } from 'recompose'
+import { connect } from 'react-redux'
+import { withRouter } from 'react-router-dom'
+
+const mapStateToProps = state => {
+ const { metamask, appState } = state
+ const {
+ unapprovedTxs = {},
+ unapprovedMsgCount = 0,
+ unapprovedPersonalMsgCount = 0,
+ unapprovedTypedMessagesCount = 0,
+ noActiveNotices,
+ lostAccounts,
+ seedWords,
+ } = metamask
+ const { forgottenPassword } = appState
+
+ return {
+ unapprovedTxs,
+ unapprovedMsgCount,
+ unapprovedPersonalMsgCount,
+ unapprovedTypedMessagesCount,
+ noActiveNotices,
+ lostAccounts,
+ forgottenPassword,
+ seedWords,
+ }
+}
+
+export default compose(
+ withRouter,
+ connect(mapStateToProps)
+)(Home)