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
feature/default_network_editable
Alex Donesky 3 years ago committed by Dan Miller
parent 3c0846df84
commit ce88b87860
  1. 3
      app/_locales/en/messages.json
  2. 27
      ui/components/app/advanced-gas-controls/advanced-gas-controls.component.js
  3. 9
      ui/components/app/advanced-gas-controls/index.scss

@ -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…
Cancel
Save