remove estimate detail in advanced gas controls (#11728)

feature/default_network_editable
Alex Donesky 3 years ago committed by GitHub
parent 7018b43898
commit c43f6cab63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 50
      ui/components/app/advanced-gas-controls/advanced-gas-controls.component.js

@ -17,8 +17,6 @@ import {
} from '../../../../shared/constants/gas';
import { getGasFormErrorText } from '../../../helpers/constants/gas';
const DEFAULT_ESTIMATES_LEVEL = 'medium';
export default function AdvancedGasControls({
estimateToUse,
gasFeeEstimates,
@ -97,30 +95,6 @@ export default function AdvancedGasControls({
value={maxPriorityFee}
detailText={maxPriorityFeeFiat}
numeric
titleDetail={
suggestedValues.maxPriorityFeePerGas && (
<>
<Typography
tag="span"
color={COLORS.UI4}
variant={TYPOGRAPHY.H8}
fontWeight={FONT_WEIGHT.BOLD}
>
{t('gasFeeEstimate')}:
</Typography>{' '}
<Typography
tag="span"
color={COLORS.UI4}
variant={TYPOGRAPHY.H8}
>
{
gasFeeEstimates?.[DEFAULT_ESTIMATES_LEVEL]
?.suggestedMaxPriorityFeePerGas
}
</Typography>
</>
)
}
error={
gasErrors?.maxPriorityFee
? getGasFormErrorText(gasErrors.maxPriorityFee, t)
@ -138,30 +112,6 @@ export default function AdvancedGasControls({
value={maxFee}
numeric
detailText={maxFeeFiat}
titleDetail={
suggestedValues.maxFeePerGas && (
<>
<Typography
tag="span"
color={COLORS.UI4}
variant={TYPOGRAPHY.H8}
fontWeight={FONT_WEIGHT.BOLD}
>
{t('gasFeeEstimate')}:
</Typography>{' '}
<Typography
tag="span"
color={COLORS.UI4}
variant={TYPOGRAPHY.H8}
>
{
gasFeeEstimates?.[DEFAULT_ESTIMATES_LEVEL]
?.suggestedMaxFeePerGas
}
</Typography>
</>
)
}
error={
gasErrors?.maxFee
? getGasFormErrorText(gasErrors.maxFee, t)

Loading…
Cancel
Save