mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 21:00:13 +01:00
624139a00f
* Remove unused sendWarnings The send warnings state and associated component is no longer used anywhere. * Remove unused subtitleParams The `subtitleParams` SendHeader prop was being ignored. It has been removed, along with associated selectors and tests.
19 lines
455 B
JavaScript
19 lines
455 B
JavaScript
import { connect } from 'react-redux'
|
|
import { clearSend } from '../../../store/actions'
|
|
import SendHeader from './send-header.component'
|
|
import { getTitleKey } from './send-header.selectors'
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHeader)
|
|
|
|
function mapStateToProps (state) {
|
|
return {
|
|
titleKey: getTitleKey(state),
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return {
|
|
clearSend: () => dispatch(clearSend()),
|
|
}
|
|
}
|