Move mandatory field up

[MAILPOET-2592]
This commit is contained in:
Pavel Dohnal
2020-01-07 11:33:02 +01:00
committed by Rostislav Wolný
parent 641d5ac66b
commit 26bf505553

View File

@@ -47,6 +47,11 @@ const CustomFieldSettings = ({
>
{MailPoet.I18n.t('customFieldSaveCTA')}
</Button>
<ToggleControl
label={MailPoet.I18n.t('blockMandatory')}
checked={localMandatory}
onChange={setLocalMandatory}
/>
<SettingsPreview
remove={remove}
update={update}
@@ -66,11 +71,6 @@ const CustomFieldSettings = ({
>
{MailPoet.I18n.t('customFieldAddItem')}
</Button>
<ToggleControl
label={MailPoet.I18n.t('blockMandatory')}
checked={localMandatory}
onChange={setLocalMandatory}
/>
</div>
);
};