diff --git a/assets/js/src/form_editor/components/editor.jsx b/assets/js/src/form_editor/components/editor.jsx index db8fd78e4e..74c1d9ebcf 100644 --- a/assets/js/src/form_editor/components/editor.jsx +++ b/assets/js/src/form_editor/components/editor.jsx @@ -16,6 +16,7 @@ import FormTitle from './form_title.jsx'; import Notices from './notices.jsx'; import UnsavedChangesNotice from './unsaved_changes_notice.jsx'; import FormStyles from './form_styles.jsx'; +import Preview from './preview.jsx'; // Editor settings - see @wordpress/block-editor/src/store/defaults.js const editorSettings = { @@ -44,46 +45,49 @@ export default () => { const { blocksChangedInBlockEditor } = useDispatch('mailpoet-form-editor'); return ( - - -
-
-
-
-
- -
- - - - - - - - - - - - - -
-
-
- { sidebarOpened ? : null } + <> + + +
+
+
+
+
+ +
+ + + + + + + + + + + + +
-
- - +
+
+ { sidebarOpened ? : null } +
+
+ + +
+
- -
- - + + + + ); }; diff --git a/assets/js/src/form_editor/components/preview.jsx b/assets/js/src/form_editor/components/preview.jsx index 217b5794c0..ae04424c4e 100644 --- a/assets/js/src/form_editor/components/preview.jsx +++ b/assets/js/src/form_editor/components/preview.jsx @@ -1,8 +1,9 @@ import React, { useEffect, useState } from 'react'; -import { Modal, Spinner } from '@wordpress/components'; +import { Spinner } from '@wordpress/components'; import { useDispatch, useSelect } from '@wordpress/data'; import Preview from '../../common/preview.jsx'; +import Modal from '../../common/modal/modal.jsx'; const FormPreview = () => { const [form, setForm] = useState(null); @@ -27,9 +28,6 @@ const FormPreview = () => { return (