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