mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
e8fa0b7b5d
* consolidate & dedupe send selectors
19 lines
450 B
JavaScript
19 lines
450 B
JavaScript
import { connect } from 'react-redux'
|
|
import { clearSend } from '../../../store/actions'
|
|
import SendHeader from './send-header.component'
|
|
import { getTitleKey } from '../../../selectors'
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHeader)
|
|
|
|
function mapStateToProps (state) {
|
|
return {
|
|
titleKey: getTitleKey(state),
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return {
|
|
clearSend: () => dispatch(clearSend()),
|
|
}
|
|
}
|