1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 23:06:37 +01:00
metamask-extension/ui/app/components/pages/home/home.container.js

33 lines
779 B
JavaScript
Raw Normal View History

import Home from './home.component'
import { compose } from 'recompose'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { unconfirmedTransactionsCountSelector } from '../../../selectors/confirm-transaction'
const mapStateToProps = state => {
const { metamask, appState } = state
const {
noActiveNotices,
lostAccounts,
seedWords,
2018-08-28 20:20:30 +02:00
suggestedTokens,
2018-09-27 20:19:09 +02:00
providerRequests,
} = metamask
const { forgottenPassword } = appState
return {
noActiveNotices,
lostAccounts,
forgottenPassword,
seedWords,
2018-08-28 20:20:30 +02:00
suggestedTokens,
unconfirmedTransactionsCount: unconfirmedTransactionsCountSelector(state),
2018-09-27 20:19:09 +02:00
providerRequests,
}
}
export default compose(
withRouter,
connect(mapStateToProps)
)(Home)