Skip to content

Commit

Permalink
Remove unneeded block.json name-only imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shimotmk committed Aug 29, 2023
1 parent 2202ac2 commit 2e5b3c8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/blocks/_pro/blog-card/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { useSelect } from '@wordpress/data';
import { useMemo, renderToString } from '@wordpress/element';
import { createBlock, store as blocksStore } from '@wordpress/blocks';

/**
* Internal dependencies
*/
import { name as blogCardName } from './block.json';

/**
* External dependencies
*/
Expand Down Expand Up @@ -56,10 +51,10 @@ export function useScopedBlockVariations(attributes) {
select(blocksStore);
return {
activeVariationName: getActiveBlockVariation(
blogCardName,
'vk-blocks/blog-card',
attributes
)?.name,
blockVariations: getBlockVariations(blogCardName, 'block'),
blockVariations: getBlockVariations('vk-blocks/blog-card', 'block'),
};
},
[attributes]
Expand Down

0 comments on commit 2e5b3c8

Please sign in to comment.