Make description optional

[MAILPOET-2873]
This commit is contained in:
Pavel Dohnal
2020-05-04 10:13:57 +02:00
committed by Veljko V
parent 76f7a758e1
commit 98adfe0656

View File

@ -10,7 +10,7 @@ type Props = {
onSave: () => void,
active: boolean,
label: string,
description: string,
description?: string,
icon: JSX.Element,
}
@ -45,9 +45,13 @@ const BelowPages = ({
onRequestClose={() => setDisplaySettings(false)}
contentClassName="form-placement-settings"
>
<p>
{description}
</p>
{
description !== undefined && (
<p>
{description}
</p>
)
}
{children}
<div className="mailpoet-form-placement-save">
<Button