Add comments for devs
[MAILPOET-2450]
This commit is contained in:
committed by
Jack Kitterhing
parent
f0a433de22
commit
e4855b7e9d
@@ -6,6 +6,13 @@ import Sidebar from './sidebar.jsx';
|
|||||||
import FormTitle from './form_title.jsx';
|
import FormTitle from './form_title.jsx';
|
||||||
import Notices from './notices.jsx';
|
import Notices from './notices.jsx';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This component renders the form editor app.
|
||||||
|
* Class names and organization of elements are done based on Gutenberg's edit-post package.
|
||||||
|
* (https://github.com/WordPress/gutenberg/tree/master/packages/edit-post).
|
||||||
|
* The goal is to render the same DOM for layout as Gutenberg post/page editor
|
||||||
|
* so that we can reuse it's CSS.
|
||||||
|
*/
|
||||||
export default () => {
|
export default () => {
|
||||||
const sidebarOpened = useSelect(
|
const sidebarOpened = useSelect(
|
||||||
(select) => select('mailpoet-form-editor').getSidebarOpened(),
|
(select) => select('mailpoet-form-editor').getSidebarOpened(),
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* The store is implemented using @wordpress/data module
|
||||||
|
* @see https://developer.wordpress.org/block-editor/packages/packages-data/
|
||||||
|
*/
|
||||||
import { registerStore } from '@wordpress/data';
|
import { registerStore } from '@wordpress/data';
|
||||||
import * as actions from './actions.jsx';
|
import * as actions from './actions.jsx';
|
||||||
import createReducer from './reducer.jsx';
|
import createReducer from './reducer.jsx';
|
||||||
|
Reference in New Issue
Block a user