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