Make description optional
[MAILPOET-2873]
This commit is contained in:
@@ -10,7 +10,7 @@ type Props = {
|
|||||||
onSave: () => void,
|
onSave: () => void,
|
||||||
active: boolean,
|
active: boolean,
|
||||||
label: string,
|
label: string,
|
||||||
description: string,
|
description?: string,
|
||||||
icon: JSX.Element,
|
icon: JSX.Element,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,9 +45,13 @@ const BelowPages = ({
|
|||||||
onRequestClose={() => setDisplaySettings(false)}
|
onRequestClose={() => setDisplaySettings(false)}
|
||||||
contentClassName="form-placement-settings"
|
contentClassName="form-placement-settings"
|
||||||
>
|
>
|
||||||
<p>
|
{
|
||||||
{description}
|
description !== undefined && (
|
||||||
</p>
|
<p>
|
||||||
|
{description}
|
||||||
|
</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
{children}
|
{children}
|
||||||
<div className="mailpoet-form-placement-save">
|
<div className="mailpoet-form-placement-save">
|
||||||
<Button
|
<Button
|
||||||
|
Reference in New Issue
Block a user