@@ -7,10 +7,6 @@ import {
77 useBlockProps ,
88 useInnerBlocksProps ,
99 InspectorControls ,
10- __experimentalUseBorderProps as useBorderProps ,
11- __experimentalUseColorProps as useColorProps ,
12- __experimentalGetSpacingClassesAndStyles as useSpacingProps ,
13- getTypographyClassesAndStyles as useTypographyProps ,
1410 store as blockEditorStore ,
1511} from '@wordpress/block-editor' ;
1612import { TextControl , SelectControl , PanelBody } from '@wordpress/components' ;
@@ -24,11 +20,6 @@ import {
2420 formSubmissionNotificationError ,
2521} from './utils.js' ;
2622
27- /**
28- * External dependencies
29- */
30- import classNames from 'classnames' ;
31-
3223const ALLOWED_BLOCKS = [
3324 'core/paragraph' ,
3425 'core/heading' ,
@@ -69,7 +60,7 @@ const TEMPLATE = [
6960 [ 'core/form-submit-button' , { } ] ,
7061] ;
7162
72- const Edit = ( { attributes, setAttributes, className , clientId } ) => {
63+ const Edit = ( { attributes, setAttributes, clientId } ) => {
7364 const { action, method, email, submissionMethod } = attributes ;
7465 const blockProps = useBlockProps ( ) ;
7566
@@ -92,11 +83,6 @@ const Edit = ( { attributes, setAttributes, className, clientId } ) => {
9283 : InnerBlocks . ButtonBlockAppender ,
9384 } ) ;
9485
95- const borderProps = useBorderProps ( attributes ) ;
96- const colorProps = useColorProps ( attributes ) ;
97- const spacingProps = useSpacingProps ( attributes ) ;
98- const typographyProps = useTypographyProps ( attributes ) ;
99-
10086 return (
10187 < >
10288 < InspectorControls >
@@ -186,20 +172,6 @@ const Edit = ( { attributes, setAttributes, className, clientId } ) => {
186172 ) }
187173 < form
188174 { ...innerBlocksProps }
189- style = { {
190- ...borderProps . style ,
191- ...colorProps . style ,
192- ...spacingProps . style ,
193- ...typographyProps . style ,
194- } }
195- className = { classNames (
196- className ,
197- 'wp-block-form' ,
198- colorProps . className ,
199- borderProps . className ,
200- spacingProps . className ,
201- typographyProps . className
202- ) }
203175 encType = { submissionMethod === 'email' ? 'text/plain' : null }
204176 />
205177 </ >
0 commit comments