Rename component
[MAILPOET-2600]
This commit is contained in:
committed by
Jack Kitterhing
parent
713908b6c3
commit
3f74b74ff0
@@ -17,7 +17,7 @@ import Notices from './notices.jsx';
|
||||
import UnsavedChangesNotice from './unsaved_changes_notice.jsx';
|
||||
import FormStyles from './form_styles.jsx';
|
||||
import Preview from './preview.jsx';
|
||||
import FormBackground from './form_background.jsx';
|
||||
import FormStylingBackground from './form_styling_background.jsx';
|
||||
|
||||
// Editor settings - see @wordpress/block-editor/src/store/defaults.js
|
||||
const editorSettings = {
|
||||
@@ -69,14 +69,14 @@ export default () => {
|
||||
<BlockEditorKeyboardShortcuts />
|
||||
<BlockEditorKeyboardShortcuts.Register />
|
||||
<div className="mailpoet_form">
|
||||
<FormBackground>
|
||||
<FormStylingBackground>
|
||||
<WritingFlow>
|
||||
<ObserveTyping>
|
||||
<FormTitle />
|
||||
<BlockList />
|
||||
</ObserveTyping>
|
||||
</WritingFlow>
|
||||
</FormBackground>
|
||||
</FormStylingBackground>
|
||||
</div>
|
||||
</BlockSelectionClearer>
|
||||
</div>
|
||||
|
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useSelect } from '@wordpress/data';
|
||||
|
||||
const FormBackground = ({ children }) => {
|
||||
const FormStylingBackground = ({ children }) => {
|
||||
const { fontColor, backgroundColor } = useSelect(
|
||||
(select) => {
|
||||
const settings = select('mailpoet-form-editor').getFormSettings();
|
||||
@@ -20,8 +20,8 @@ const FormBackground = ({ children }) => {
|
||||
);
|
||||
};
|
||||
|
||||
FormBackground.propTypes = {
|
||||
FormStylingBackground.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
};
|
||||
|
||||
export default FormBackground;
|
||||
export default FormStylingBackground;
|
Reference in New Issue
Block a user