mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
EditGasFeeBtn: Insufficient number of substitutions for key "dappSuggestedTooltip" (#14734)
* EditGasFeeBtn: support missing origin dappSuggest * EditGasFeeButton: add tooltip min-width * EditGasFeeButton: tooltip min-width needs extra px * EditGasFeeBtb: tooltip min-width add a bit more px
This commit is contained in:
parent
634cf70a71
commit
e06e5599bb
@ -80,23 +80,22 @@ export default function EditGasFeeButton({ userAcknowledgedGasMissing }) {
|
||||
<InfoTooltip
|
||||
contentText={
|
||||
<div className="edit-gas-fee-button__tooltip">
|
||||
<Typography
|
||||
variant={TYPOGRAPHY.H7}
|
||||
color={COLORS.TEXT_ALTERNATIVE}
|
||||
>
|
||||
{t('dappSuggestedTooltip', [transaction.origin])}
|
||||
{transaction?.origin && (
|
||||
<Typography
|
||||
variant={TYPOGRAPHY.H7}
|
||||
color={COLORS.TEXT_ALTERNATIVE}
|
||||
>
|
||||
{t('dappSuggestedTooltip', [transaction.origin])}
|
||||
</Typography>
|
||||
)}
|
||||
<Typography variant={TYPOGRAPHY.H7}>
|
||||
<b>{t('maxBaseFee')}</b> {maxFeePerGas}
|
||||
</Typography>
|
||||
<Typography variant={TYPOGRAPHY.H7}>
|
||||
<b>{t('maxBaseFee')}</b>
|
||||
{maxFeePerGas}
|
||||
<b>{t('maxPriorityFee')}</b> {maxPriorityFeePerGas}
|
||||
</Typography>
|
||||
<Typography variant={TYPOGRAPHY.H7}>
|
||||
<b>{t('maxPriorityFee')}</b>
|
||||
{maxPriorityFeePerGas}
|
||||
</Typography>
|
||||
<Typography variant={TYPOGRAPHY.H7}>
|
||||
<b>{t('gasLimit')}</b>
|
||||
{gasLimit}
|
||||
<b>{t('gasLimit')}</b> {gasLimit}
|
||||
</Typography>
|
||||
</div>
|
||||
}
|
||||
|
@ -47,3 +47,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Overrides react-tippy
|
||||
|
||||
.tippy-tooltip .tippy-tooltip-content .edit-gas-fee-button__tooltip {
|
||||
min-width: 170px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user