1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-21 17:37:01 +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'
) {
text = t('editGasTooLow');
attitude = 'negative';
} else {
text = t('gasTimingNegative', [
toHumanReadableTime(Number(customEstimatedTime?.upperTimeBound), t),

View File

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

View File

@ -492,7 +492,7 @@ exports[`ConfirmSendEther should render correct information for for confirm send
>
<div>
<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
</h6>

View File

@ -265,7 +265,7 @@ exports[`SendContent Component render should match snapshot 1`] = `
>
<div>
<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
</h6>