aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/home/home.container.js
diff options
context:
space:
mode:
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)