mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-04 23:14:56 +01:00
38b91f63a2
* Extract advanced gas input controls to their own component * Add advanced inline gas toggle to settings * Add optional advanced inline gas to send send screen * Adds optional advanced gas inputs to the confirm screen * Add info modals for advanced gas inputs. * Fix translation of advance gas toggle description. * Lint and unit test fixes for inline-advanced-gas-inputs * Increase margin above advanced options button on send screen * Move methods from constructor to property syntax in advanced-gas-inputs.component
13 lines
465 B
JavaScript
13 lines
465 B
JavaScript
import { connect } from 'react-redux'
|
|
import { showModal } from '../../../actions'
|
|
import AdvancedGasInputs from './advanced-gas-inputs.component'
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
return {
|
|
showGasPriceInfoModal: modalName => dispatch(showModal({ name: 'GAS_PRICE_INFO_MODAL' })),
|
|
showGasLimitInfoModal: modalName => dispatch(showModal({ name: 'GAS_LIMIT_INFO_MODAL' })),
|
|
}
|
|
}
|
|
|
|
export default connect(null, mapDispatchToProps)(AdvancedGasInputs)
|