Assorted configuration tweaks / code cleanup

This commit is contained in:
2022-01-22 22:19:32 -05:00
parent fc2f9df23c
commit 8e51f2ca38
7 changed files with 108 additions and 15 deletions

View File

@@ -3,7 +3,6 @@
*/
import { registerBlockType } from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';
import { BlockAttributes } from './types';
@@ -15,13 +14,10 @@ import Save from './save';
import CogIcon from './assets/cogicon';
registerBlockType<BlockAttributes> ( 'cognito-forms/cognito-embed', {
registerBlockType<BlockAttributes>( 'cognito-forms/cognito-embed', {
title: 'Cognito Forms',
icon: CogIcon,
description: __(
'Easily build powerful forms.',
'cognito'
),
description: 'Easily build powerful forms.',
category: 'embed',
supports: {
// Removes support for an HTML mode.

View File

@@ -16,8 +16,6 @@ const Save: React.FC<BlockSaveProps<BlockAttributes>> = ( { attributes: { formId
break;
}
console.log(formId);
return (
<div
className="cog-wp-embed"