mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 04:37:13 +01:00
33 lines
779 B
JavaScript
33 lines
779 B
JavaScript
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,
|
|
suggestedTokens,
|
|
providerRequests,
|
|
} = metamask
|
|
const { forgottenPassword } = appState
|
|
|
|
return {
|
|
noActiveNotices,
|
|
lostAccounts,
|
|
forgottenPassword,
|
|
seedWords,
|
|
suggestedTokens,
|
|
unconfirmedTransactionsCount: unconfirmedTransactionsCountSelector(state),
|
|
providerRequests,
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps)
|
|
)(Home)
|