|
|
@ -32,11 +32,11 @@ export default class SendGasRow extends Component { |
|
|
|
|
|
|
|
|
|
|
|
static contextTypes = { |
|
|
|
static contextTypes = { |
|
|
|
t: PropTypes.func, |
|
|
|
t: PropTypes.func, |
|
|
|
metricsEvent: PropTypes.func, |
|
|
|
trackEvent: PropTypes.func, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
renderAdvancedOptionsButton() { |
|
|
|
renderAdvancedOptionsButton() { |
|
|
|
const { metricsEvent } = this.context; |
|
|
|
const { trackEvent } = this.context; |
|
|
|
const { |
|
|
|
const { |
|
|
|
showCustomizeGasModal, |
|
|
|
showCustomizeGasModal, |
|
|
|
isMainnet, |
|
|
|
isMainnet, |
|
|
@ -54,12 +54,9 @@ export default class SendGasRow extends Component { |
|
|
|
<div |
|
|
|
<div |
|
|
|
className="advanced-gas-options-btn" |
|
|
|
className="advanced-gas-options-btn" |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
metricsEvent({ |
|
|
|
trackEvent({ |
|
|
|
eventOpts: { |
|
|
|
|
|
|
|
category: 'Transactions', |
|
|
|
category: 'Transactions', |
|
|
|
action: 'Edit Screen', |
|
|
|
event: 'Clicked "Advanced Options"', |
|
|
|
name: 'Clicked "Advanced Options"', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
showCustomizeGasModal(); |
|
|
|
showCustomizeGasModal(); |
|
|
|
}} |
|
|
|
}} |
|
|
@ -105,7 +102,7 @@ export default class SendGasRow extends Component { |
|
|
|
isEthGasPrice, |
|
|
|
isEthGasPrice, |
|
|
|
noGasPrice, |
|
|
|
noGasPrice, |
|
|
|
} = this.props; |
|
|
|
} = this.props; |
|
|
|
const { metricsEvent } = this.context; |
|
|
|
const { trackEvent } = this.context; |
|
|
|
const gasPriceFetchFailure = isEthGasPrice || noGasPrice; |
|
|
|
const gasPriceFetchFailure = isEthGasPrice || noGasPrice; |
|
|
|
|
|
|
|
|
|
|
|
const gasPriceButtonGroup = ( |
|
|
|
const gasPriceButtonGroup = ( |
|
|
@ -115,11 +112,11 @@ export default class SendGasRow extends Component { |
|
|
|
showCheck={false} |
|
|
|
showCheck={false} |
|
|
|
{...gasPriceButtonGroupProps} |
|
|
|
{...gasPriceButtonGroupProps} |
|
|
|
handleGasPriceSelection={async (opts) => { |
|
|
|
handleGasPriceSelection={async (opts) => { |
|
|
|
metricsEvent({ |
|
|
|
trackEvent({ |
|
|
|
eventOpts: { |
|
|
|
|
|
|
|
category: 'Transactions', |
|
|
|
category: 'Transactions', |
|
|
|
action: 'Edit Screen', |
|
|
|
event: 'User Clicked Gas Estimate Button', |
|
|
|
name: 'Changed Gas Button', |
|
|
|
properties: { |
|
|
|
|
|
|
|
gasEstimateType: opts.gasEstimateType.toLowerCase(), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
await gasPriceButtonGroupProps.handleGasPriceSelection(opts); |
|
|
|
await gasPriceButtonGroupProps.handleGasPriceSelection(opts); |
|
|
|