Unify code style
[MAILPOET-2451]
This commit is contained in:
committed by
Jack Kitterhing
parent
60d528da84
commit
27243260ec
@@ -3,6 +3,7 @@ import edit from './edit.jsx';
|
|||||||
import icon from './icon.jsx';
|
import icon from './icon.jsx';
|
||||||
|
|
||||||
export const name = 'mailpoet-form/email-input';
|
export const name = 'mailpoet-form/email-input';
|
||||||
|
|
||||||
export const settings = {
|
export const settings = {
|
||||||
title: MailPoet.I18n.t('blockEmail'),
|
title: MailPoet.I18n.t('blockEmail'),
|
||||||
description: MailPoet.I18n.t('blockEmailDescription'),
|
description: MailPoet.I18n.t('blockEmailDescription'),
|
||||||
|
@@ -1,7 +1,10 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import {
|
||||||
|
Panel,
|
||||||
|
PanelBody,
|
||||||
|
TextControl,
|
||||||
|
} from '@wordpress/components';
|
||||||
import { InspectorControls } from '@wordpress/block-editor';
|
import { InspectorControls } from '@wordpress/block-editor';
|
||||||
import { TextControl, Panel, PanelBody } from '@wordpress/components';
|
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
|
|
||||||
|
@@ -8,13 +8,13 @@ export const settings = {
|
|||||||
title: MailPoet.I18n.t('blockSubmit'),
|
title: MailPoet.I18n.t('blockSubmit'),
|
||||||
description: MailPoet.I18n.t('blockSubmitDescription'),
|
description: MailPoet.I18n.t('blockSubmitDescription'),
|
||||||
icon,
|
icon,
|
||||||
|
category: 'obligatory',
|
||||||
attributes: {
|
attributes: {
|
||||||
label: {
|
label: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: MailPoet.I18n.t('blockSubmitLabel'),
|
default: MailPoet.I18n.t('blockSubmitLabel'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
category: 'obligatory',
|
|
||||||
supports: {
|
supports: {
|
||||||
html: false,
|
html: false,
|
||||||
customClassName: false,
|
customClassName: false,
|
||||||
|
Reference in New Issue
Block a user