mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
remove estimate detail in advanced gas controls (#11728)
This commit is contained in:
parent
7018b43898
commit
c43f6cab63
@ -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…
Reference in New Issue
Block a user