You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
809 B
28 lines
809 B
7 years ago
|
import { connect } from 'react-redux'
|
||
7 years ago
|
import {
|
||
|
getConversionRate,
|
||
7 years ago
|
getCurrentCurrency,
|
||
7 years ago
|
getGasTotal,
|
||
|
} from '../../send.selectors.js'
|
||
7 years ago
|
import { getGasLoadingError, gasFeeIsInError } from './send-gas-row.selectors.js'
|
||
7 years ago
|
import { showModal } from '../../../../actions'
|
||
|
import SendGasRow from './send-gas-row.component'
|
||
7 years ago
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(SendGasRow)
|
||
|
|
||
|
function mapStateToProps (state) {
|
||
|
return {
|
||
|
conversionRate: getConversionRate(state),
|
||
7 years ago
|
convertedCurrency: getCurrentCurrency(state),
|
||
7 years ago
|
gasTotal: getGasTotal(state),
|
||
7 years ago
|
gasFeeError: gasFeeIsInError(state),
|
||
|
gasLoadingError: getGasLoadingError(state),
|
||
7 years ago
|
}
|
||
|
}
|
||
|
|
||
|
function mapDispatchToProps (dispatch) {
|
||
|
return {
|
||
|
showCustomizeGasModal: () => dispatch(showModal({ name: 'CUSTOMIZE_GAS' })),
|
||
|
}
|
||
|
}
|