mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Adjusting Max Fee label in EditGasDisplay per designs (#11796)
This commit is contained in:
parent
ce3160a1f5
commit
e57a2da647
@ -714,10 +714,6 @@
|
||||
"editGasTooLowTooltip": {
|
||||
"message": "Your max fee or max priority fee may be low for current market conditions. We don't know when (or if) your transaction will be processed. "
|
||||
},
|
||||
"editGasTotalBannerSubtitle": {
|
||||
"message": "Up to $1 ($2)",
|
||||
"display": "$1 represents a fiat value"
|
||||
},
|
||||
"editNonceField": {
|
||||
"message": "Edit Nonce"
|
||||
},
|
||||
|
@ -159,19 +159,23 @@ export default function EditGasDisplay({
|
||||
}
|
||||
detail={
|
||||
networkAndAccountSupport1559 &&
|
||||
estimatedMaximumFiat !== undefined &&
|
||||
t('editGasTotalBannerSubtitle', [
|
||||
<Typography
|
||||
fontWeight={FONT_WEIGHT.BOLD}
|
||||
tag="span"
|
||||
key="secondary"
|
||||
>
|
||||
{estimatedMaximumFiat}
|
||||
</Typography>,
|
||||
<Typography tag="span" key="primary">
|
||||
{estimatedMaximumNative}
|
||||
</Typography>,
|
||||
])
|
||||
estimatedMaximumFiat !== undefined && (
|
||||
<>
|
||||
<Typography
|
||||
tag="span"
|
||||
key="label"
|
||||
fontWeight={FONT_WEIGHT.BOLD}
|
||||
>
|
||||
{t('editGasSubTextFeeLabel')}
|
||||
</Typography>
|
||||
<Typography tag="span" key="secondary">
|
||||
{estimatedMaximumFiat}
|
||||
</Typography>
|
||||
<Typography tag="span" key="primary">
|
||||
{`(${estimatedMaximumNative})`}
|
||||
</Typography>
|
||||
</>
|
||||
)
|
||||
}
|
||||
timing={
|
||||
hasGasErrors === false && (
|
||||
|
@ -4,4 +4,8 @@
|
||||
&__detail {
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
span {
|
||||
margin-inline-start: 2px;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user