1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02: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:
Ariella Vu 2022-05-23 15:04:54 -05:00 committed by GitHub
parent 634cf70a71
commit e06e5599bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 13 deletions

View File

@ -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>
}

View File

@ -47,3 +47,10 @@
}
}
}
// Overrides react-tippy
.tippy-tooltip .tippy-tooltip-content .edit-gas-fee-button__tooltip {
min-width: 170px;
}