diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-07-25 02:40:05 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 07:44:43 +0800 |
commit | 3b408715c745030aed6e720e6f19dc8f2aa511d1 (patch) | |
tree | 9dd80e685a533f673e7d3af7b70385240c011153 /ui/app/components/pages/home/home.container.js | |
parent | dae07b32e50de8a3aa4c89d266c9272155beaaa4 (diff) | |
download | tangerine-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.js | 34 |
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) |