mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
29 lines
693 B
JavaScript
29 lines
693 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,
|
|
} = metamask
|
|
const { forgottenPassword } = appState
|
|
|
|
return {
|
|
noActiveNotices,
|
|
lostAccounts,
|
|
forgottenPassword,
|
|
seedWords,
|
|
unconfirmedTransactionsCount: unconfirmedTransactionsCountSelector(state),
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps)
|
|
)(Home)
|