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": {
"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…
Cancel
Save