From 3f74b74ff0a0fcc2cd9957f3a4e49915f7493eae Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Wed, 26 Feb 2020 08:57:13 +0100 Subject: [PATCH] Rename component [MAILPOET-2600] --- assets/js/src/form_editor/components/editor.jsx | 6 +++--- .../{form_background.jsx => form_styling_background.jsx} | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename assets/js/src/form_editor/components/{form_background.jsx => form_styling_background.jsx} (81%) diff --git a/assets/js/src/form_editor/components/editor.jsx b/assets/js/src/form_editor/components/editor.jsx index 1bcaa9b7f0..617dfe0cdd 100644 --- a/assets/js/src/form_editor/components/editor.jsx +++ b/assets/js/src/form_editor/components/editor.jsx @@ -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 () => {
- + - +
diff --git a/assets/js/src/form_editor/components/form_background.jsx b/assets/js/src/form_editor/components/form_styling_background.jsx similarity index 81% rename from assets/js/src/form_editor/components/form_background.jsx rename to assets/js/src/form_editor/components/form_styling_background.jsx index 40ecfc40b0..bb01206a32 100644 --- a/assets/js/src/form_editor/components/form_background.jsx +++ b/assets/js/src/form_editor/components/form_styling_background.jsx @@ -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;