1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +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:
Alex Donesky 2021-08-03 14:34:24 -05:00 committed by GitHub
parent 7f0b2a81ce
commit 615380b76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 39 deletions

View File

@ -907,9 +907,6 @@
"gasEstimatesUnavailableWarning": {
"message": "Our low, medium and high estimates are not available."
},
"gasFeeEstimate": {
"message": "Estimate"
},
"gasLimit": {
"message": "Gas Limit"
},

View File

@ -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)

View File

@ -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;