|
|
@ -60,8 +60,6 @@ export default function EditGasDisplay({ |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
const t = useContext(I18nContext); |
|
|
|
const t = useContext(I18nContext); |
|
|
|
|
|
|
|
|
|
|
|
const alwaysShowForm = !estimateToUse || hasGasErrors || false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dappSuggestedAndTxParamGasFeesAreTheSame = areDappSuggestedAndTxParamGasFeesTheSame( |
|
|
|
const dappSuggestedAndTxParamGasFeesAreTheSame = areDappSuggestedAndTxParamGasFeesTheSame( |
|
|
|
transaction, |
|
|
|
transaction, |
|
|
|
); |
|
|
|
); |
|
|
@ -178,7 +176,7 @@ export default function EditGasDisplay({ |
|
|
|
onChange={setEstimateToUse} |
|
|
|
onChange={setEstimateToUse} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)} |
|
|
|
)} |
|
|
|
{!alwaysShowForm && !requireDappAcknowledgement && ( |
|
|
|
{!requireDappAcknowledgement && ( |
|
|
|
<button |
|
|
|
<button |
|
|
|
className="edit-gas-display__advanced-button" |
|
|
|
className="edit-gas-display__advanced-button" |
|
|
|
onClick={() => setShowAdvancedForm(!showAdvancedForm)} |
|
|
|
onClick={() => setShowAdvancedForm(!showAdvancedForm)} |
|
|
@ -191,8 +189,7 @@ export default function EditGasDisplay({ |
|
|
|
)} |
|
|
|
)} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
)} |
|
|
|
)} |
|
|
|
{!requireDappAcknowledgement && |
|
|
|
{!requireDappAcknowledgement && showAdvancedForm && ( |
|
|
|
(alwaysShowForm || showAdvancedForm) && ( |
|
|
|
|
|
|
|
<AdvancedGasControls |
|
|
|
<AdvancedGasControls |
|
|
|
gasFeeEstimates={gasFeeEstimates} |
|
|
|
gasFeeEstimates={gasFeeEstimates} |
|
|
|
gasEstimateType={gasEstimateType} |
|
|
|
gasEstimateType={gasEstimateType} |
|
|
|