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:
parent
7f0b2a81ce
commit
615380b76d
@ -907,9 +907,6 @@
|
|||||||
"gasEstimatesUnavailableWarning": {
|
"gasEstimatesUnavailableWarning": {
|
||||||
"message": "Our low, medium and high estimates are not available."
|
"message": "Our low, medium and high estimates are not available."
|
||||||
},
|
},
|
||||||
"gasFeeEstimate": {
|
|
||||||
"message": "Estimate"
|
|
||||||
},
|
|
||||||
"gasLimit": {
|
"gasLimit": {
|
||||||
"message": "Gas Limit"
|
"message": "Gas Limit"
|
||||||
},
|
},
|
||||||
|
@ -3,12 +3,6 @@ import PropTypes from 'prop-types';
|
|||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
import { I18nContext } from '../../../contexts/i18n';
|
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 FormField from '../../ui/form-field';
|
||||||
import {
|
import {
|
||||||
GAS_ESTIMATE_TYPES,
|
GAS_ESTIMATE_TYPES,
|
||||||
@ -135,27 +129,6 @@ export default function AdvancedGasControls({
|
|||||||
tooltipText={t('editGasPriceTooltip')}
|
tooltipText={t('editGasPriceTooltip')}
|
||||||
value={gasPrice}
|
value={gasPrice}
|
||||||
numeric
|
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={
|
error={
|
||||||
gasErrors?.gasPrice
|
gasErrors?.gasPrice
|
||||||
? getGasFormErrorText(gasErrors.gasPrice, t)
|
? getGasFormErrorText(gasErrors.gasPrice, t)
|
||||||
|
@ -3,19 +3,10 @@
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__row-heading {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-tooltip {
|
.info-tooltip {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__row-heading-detail {
|
|
||||||
flex-grow: 1;
|
|
||||||
align-self: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-field__row--error .form-field__heading-title h6 {
|
.form-field__row--error .form-field__heading-title h6 {
|
||||||
color: $error-1;
|
color: $error-1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user