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:
parent
dc25a24de3
commit
493448c96e
@ -14,13 +14,6 @@ export default function EditGasDisplayEducation() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="edit-gas-display-education">
|
<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}>
|
<Typography tag="p" color={COLORS.UI4} variant={TYPOGRAPHY.H6}>
|
||||||
{t('editGasEducationModalIntro')}
|
{t('editGasEducationModalIntro')}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
@ -168,6 +168,7 @@ export default function EditGasPopover({
|
|||||||
showEducationContent ? () => setShowEducationContent(false) : undefined
|
showEducationContent ? () => setShowEducationContent(false) : undefined
|
||||||
}
|
}
|
||||||
footer={
|
footer={
|
||||||
|
showEducationContent ? null : (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -182,6 +183,7 @@ export default function EditGasPopover({
|
|||||||
{footerButtonText}
|
{footerButtonText}
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div style={{ padding: '0 20px 20px 20px' }}>
|
<div style={{ padding: '0 20px 20px 20px' }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user