mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Fix unknown processing time not showing in warning color (#19527)
This commit is contained in:
parent
f286d16664
commit
a0e6737848
@ -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),
|
||||
|
@ -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,
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user