mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Remove estimate detail above advanced gas controls in non-1559 network (#11744)
* Remove estimate detail above advanced gas controls in non-1559 network * lint * remove gasEstimate localization text
This commit is contained in:
parent
7f0b2a81ce
commit
615380b76d
@ -907,9 +907,6 @@
|
||||
"gasEstimatesUnavailableWarning": {
|
||||
"message": "Our low, medium and high estimates are not available."
|
||||
},
|
||||
"gasFeeEstimate": {
|
||||
"message": "Estimate"
|
||||
},
|
||||
"gasLimit": {
|
||||
"message": "Gas Limit"
|
||||
},
|
||||
|
@ -3,12 +3,6 @@ import PropTypes from 'prop-types';
|
||||
import { useSelector } from 'react-redux';
|
||||
|
||||
import { I18nContext } from '../../../contexts/i18n';
|
||||
import Typography from '../../ui/typography/typography';
|
||||
import {
|
||||
FONT_WEIGHT,
|
||||
TYPOGRAPHY,
|
||||
COLORS,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
import FormField from '../../ui/form-field';
|
||||
import {
|
||||
GAS_ESTIMATE_TYPES,
|
||||
@ -135,27 +129,6 @@ export default function AdvancedGasControls({
|
||||
tooltipText={t('editGasPriceTooltip')}
|
||||
value={gasPrice}
|
||||
numeric
|
||||
titleDetail={
|
||||
suggestedValues.gasPrice && (
|
||||
<>
|
||||
<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}
|
||||
>
|
||||
{suggestedValues.gasPrice}
|
||||
</Typography>
|
||||
</>
|
||||
)
|
||||
}
|
||||
error={
|
||||
gasErrors?.gasPrice
|
||||
? getGasFormErrorText(gasErrors.gasPrice, t)
|
||||
|
@ -3,19 +3,10 @@
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&__row-heading {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.info-tooltip {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&__row-heading-detail {
|
||||
flex-grow: 1;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.form-field__row--error .form-field__heading-title h6 {
|
||||
color: $error-1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user