mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +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'
|
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),
|
||||||
|
@ -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,
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user