From c8fcbc68b9591dfd89dba5da0b39d28bc27ad92f Mon Sep 17 00:00:00 2001 From: shimotmk Date: Wed, 30 Aug 2023 10:57:08 +0900 Subject: [PATCH] Remove unneeded block.json name-only imports --- src/blocks/button/transforms.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/blocks/button/transforms.js b/src/blocks/button/transforms.js index e1ca8260c..52666f9ea 100644 --- a/src/blocks/button/transforms.js +++ b/src/blocks/button/transforms.js @@ -3,11 +3,6 @@ */ import { createBlock } from '@wordpress/blocks'; -/** - * Internal dependencies - */ -import { name } from './block.json'; - const transforms = { from: [ { @@ -21,7 +16,7 @@ const transforms = { const link = div.querySelector('a'); const url = link?.getAttribute('href'); const target = link?.getAttribute('target') ? true : false; - return createBlock(name, { + return createBlock('vk-blocks/button', { content: text, buttonUrl: url, buttonTarget: target,