mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 20:57:12 +01:00
b3d78ed8a1
Revert accidentally changed constants. Require defaults in ens-input, gas-fee-display and confirm screens.
28 lines
809 B
JavaScript
28 lines
809 B
JavaScript
import { connect } from 'react-redux'
|
|
import {
|
|
getConversionRate,
|
|
getCurrentCurrency,
|
|
getGasTotal,
|
|
} from '../../send.selectors.js'
|
|
import { getGasLoadingError, gasFeeIsInError } from './send-gas-row.selectors.js'
|
|
import { showModal } from '../../../../actions'
|
|
import SendGasRow from './send-gas-row.component'
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendGasRow)
|
|
|
|
function mapStateToProps (state) {
|
|
return {
|
|
conversionRate: getConversionRate(state),
|
|
convertedCurrency: getCurrentCurrency(state),
|
|
gasTotal: getGasTotal(state),
|
|
gasFeeError: gasFeeIsInError(state),
|
|
gasLoadingError: getGasLoadingError(state),
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return {
|
|
showCustomizeGasModal: () => dispatch(showModal({ name: 'CUSTOMIZE_GAS' })),
|
|
}
|
|
}
|