Assorted configuration tweaks / code cleanup
This commit is contained in:
@@ -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.
|
||||
|
@@ -16,8 +16,6 @@ const Save: React.FC<BlockSaveProps<BlockAttributes>> = ( { attributes: { formId
|
||||
break;
|
||||
}
|
||||
|
||||
console.log(formId);
|
||||
|
||||
return (
|
||||
<div
|
||||
className="cog-wp-embed"
|
||||
|
Reference in New Issue
Block a user