1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00

Fix unknown processing time not showing in warning color (#19527)

This commit is contained in:
Olusegun Akintayo 2023-06-15 18:52:08 +03:00 committed by GitHub
parent f286d16664
commit a0e6737848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -151,6 +151,7 @@ export default function GasTiming({
customEstimatedTime?.upperTimeBound === 'unknown' customEstimatedTime?.upperTimeBound === 'unknown'
) { ) {
text = t('editGasTooLow'); text = t('editGasTooLow');
attitude = 'negative';
} else { } else {
text = t('gasTimingNegative', [ text = t('gasTimingNegative', [
toHumanReadableTime(Number(customEstimatedTime?.upperTimeBound), t), toHumanReadableTime(Number(customEstimatedTime?.upperTimeBound), t),

View File

@ -92,14 +92,14 @@ import { useTransactionFunctions } from './useTransactionFunctions';
* './useGasFeeEstimates' * './useGasFeeEstimates'
* ).GasEstimates} gas fee input state and the GasFeeEstimates object * ).GasEstimates} gas fee input state and the GasFeeEstimates object
*/ */
const GAS_LIMIT_TOO_HIGH_IN_ETH = '1';
export function useGasFeeInputs( export function useGasFeeInputs(
defaultEstimateToUse = GasRecommendations.medium, defaultEstimateToUse = GasRecommendations.medium,
_transaction, _transaction,
minimumGasLimit = '0x5208', minimumGasLimit = '0x5208',
editGasMode = EditGasModes.modifyInPlace, editGasMode = EditGasModes.modifyInPlace,
) { ) {
const GAS_LIMIT_TOO_HIGH_IN_ETH = '1';
const initialRetryTxMeta = { const initialRetryTxMeta = {
txParams: _transaction?.txParams, txParams: _transaction?.txParams,
id: _transaction?.id, id: _transaction?.id,

View File

@ -492,7 +492,7 @@ exports[`ConfirmSendEther should render correct information for for confirm send
> >
<div> <div>
<h6 <h6
class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography gas-timing gas-timing--positive typography--h7 typography--weight-normal typography--style-normal typography--color-text-default" class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography gas-timing gas-timing--negative typography--h7 typography--weight-normal typography--style-normal typography--color-text-default"
> >
Unknown processing time Unknown processing time
</h6> </h6>

View File

@ -265,7 +265,7 @@ exports[`SendContent Component render should match snapshot 1`] = `
> >
<div> <div>
<h6 <h6
class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography gas-timing gas-timing--positive typography--h7 typography--weight-normal typography--style-normal typography--color-text-default" class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography gas-timing gas-timing--negative typography--h7 typography--weight-normal typography--style-normal typography--color-text-default"
> >
Unknown processing time Unknown processing time
</h6> </h6>