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'; } from '../../../../shared/constants/gas';
import { getGasFormErrorText } from '../../../helpers/constants/gas'; import { getGasFormErrorText } from '../../../helpers/constants/gas';
const DEFAULT_ESTIMATES_LEVEL = 'medium';
export default function AdvancedGasControls({ export default function AdvancedGasControls({
estimateToUse, estimateToUse,
gasFeeEstimates, gasFeeEstimates,
@ -97,30 +95,6 @@ export default function AdvancedGasControls({
value={maxPriorityFee} value={maxPriorityFee}
detailText={maxPriorityFeeFiat} detailText={maxPriorityFeeFiat}
numeric 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={ error={
gasErrors?.maxPriorityFee gasErrors?.maxPriorityFee
? getGasFormErrorText(gasErrors.maxPriorityFee, t) ? getGasFormErrorText(gasErrors.maxPriorityFee, t)
@ -138,30 +112,6 @@ export default function AdvancedGasControls({
value={maxFee} value={maxFee}
numeric numeric
detailText={maxFeeFiat} 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={ error={
gasErrors?.maxFee gasErrors?.maxFee
? getGasFormErrorText(gasErrors.maxFee, t) ? getGasFormErrorText(gasErrors.maxFee, t)

Loading…
Cancel
Save