From c43f6cab63b67dbedff31e7bddc37708686c5f86 Mon Sep 17 00:00:00 2001 From: Alex Donesky Date: Mon, 2 Aug 2021 14:32:43 -0500 Subject: [PATCH] remove estimate detail in advanced gas controls (#11728) --- .../advanced-gas-controls.component.js | 50 ------------------- 1 file changed, 50 deletions(-) diff --git a/ui/components/app/advanced-gas-controls/advanced-gas-controls.component.js b/ui/components/app/advanced-gas-controls/advanced-gas-controls.component.js index 3a4a45b7a..397714678 100644 --- a/ui/components/app/advanced-gas-controls/advanced-gas-controls.component.js +++ b/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 && ( - <> - - {t('gasFeeEstimate')}: - {' '} - - { - gasFeeEstimates?.[DEFAULT_ESTIMATES_LEVEL] - ?.suggestedMaxPriorityFeePerGas - } - - - ) - } error={ gasErrors?.maxPriorityFee ? getGasFormErrorText(gasErrors.maxPriorityFee, t) @@ -138,30 +112,6 @@ export default function AdvancedGasControls({ value={maxFee} numeric detailText={maxFeeFiat} - titleDetail={ - suggestedValues.maxFeePerGas && ( - <> - - {t('gasFeeEstimate')}: - {' '} - - { - gasFeeEstimates?.[DEFAULT_ESTIMATES_LEVEL] - ?.suggestedMaxFeePerGas - } - - - ) - } error={ gasErrors?.maxFee ? getGasFormErrorText(gasErrors.maxFee, t)