1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

EIP-1559 - Don't show submit button when in education mode, don't duplicate title (#11541)

This commit is contained in:
David Walsh 2021-07-16 11:19:09 -05:00 committed by GitHub
parent dc25a24de3
commit 493448c96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 21 deletions

View File

@ -14,13 +14,6 @@ export default function EditGasDisplayEducation() {
return (
<div className="edit-gas-display-education">
<Typography
color={COLORS.BLACK}
variant={TYPOGRAPHY.H4}
fontWeight={FONT_WEIGHT.BOLD}
>
{t('editGasEducationModalTitle')}
</Typography>
<Typography tag="p" color={COLORS.UI4} variant={TYPOGRAPHY.H6}>
{t('editGasEducationModalIntro')}
</Typography>

View File

@ -168,20 +168,22 @@ export default function EditGasPopover({
showEducationContent ? () => setShowEducationContent(false) : undefined
}
footer={
<>
<Button
type="primary"
onClick={onSubmit}
disabled={
isMaxFeeError ||
isMaxPriorityFeeError ||
isGasTooLow ||
isGasEstimatesLoading
}
>
{footerButtonText}
</Button>
</>
showEducationContent ? null : (
<>
<Button
type="primary"
onClick={onSubmit}
disabled={
isMaxFeeError ||
isMaxPriorityFeeError ||
isGasTooLow ||
isGasEstimatesLoading
}
>
{footerButtonText}
</Button>
</>
)
}
>
<div style={{ padding: '0 20px 20px 20px' }}>