mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
27 lines
751 B
JavaScript
27 lines
751 B
JavaScript
import { connect } from 'react-redux'
|
|
import {
|
|
getConversionRate,
|
|
getConvertedCurrency,
|
|
getGasTotal,
|
|
} from '../../send.selectors.js'
|
|
import { sendGasIsInError } 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: getConvertedCurrency(state),
|
|
gasTotal: getGasTotal(state),
|
|
gasLoadingError: sendGasIsInError(state),
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return {
|
|
showCustomizeGasModal: () => dispatch(showModal({ name: 'CUSTOMIZE_GAS' })),
|
|
}
|
|
}
|