Builds Now Functional

This commit is contained in:
Christopher Allford 2023-12-09 08:15:27 -08:00
parent fbb38a973a
commit b26488c8bb
3 changed files with 261 additions and 245 deletions

View File

@ -19,7 +19,7 @@ export function SectionDescriptionBlockEdit( {
const { content } = attributes;
const blockProps = useWooBlockProps( attributes );
const rootClientId: string = useSelect(
const rootClientId = useSelect(
( select ) => {
const { getBlockRootClientId } = select( 'core/block-editor' );
return getBlockRootClientId( clientId );

View File

@ -17,7 +17,7 @@ export function BlockIcon( { clientId }: BlockIconProps ) {
// Try to get the icon from the block's attributes
const { getBlockAttributes, getBlockName } =
select( 'core/block-editor' );
const attributes: BlockAttributes = getBlockAttributes( clientId );
const attributes = getBlockAttributes( clientId );
if ( attributes?.icon ) {
return attributes.icon;
}

File diff suppressed because it is too large Load Diff