diff --git a/src/index.js b/src/index.js index 7492334..2a0cb86 100644 --- a/src/index.js +++ b/src/index.js @@ -4,9 +4,13 @@ import './editor.scss'; import { registerBlockType } from '@wordpress/blocks'; import { __ } from '@wordpress/i18n'; +const NAMESPACE = ''; +const SLUG = ''; +const BLOCK_TITLE= ''; -registerBlockType( '/', { // FIXME replace , , - title: __( '', '' ), // FIXME replace , + +registerBlockType( `${NAMESPACE}/${SLUG}`, { + title: __( BLOCK_TITLE, SLUG), category: 'widgets', @@ -20,7 +24,7 @@ registerBlockType( '/', { // FIXME replace , '), // FIXME replace + default: __('A default name', NAMESPACE), }, }