Skip to content

Commit

Permalink
fix icon size (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnstn authored Jun 14, 2024
1 parent 2270add commit 13fb9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/blocks/src/components/icon/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as icons from '@wordpress/icons';
const { Icon } = icons;

export default function save( { attributes, className } ) {
const { icon, size } = attributes;
const { icon, iconSize } = attributes;
const blockProps = useBlockProps.save();

return (
Expand All @@ -23,7 +23,7 @@ export default function save( { attributes, className } ) {
'wpcloud-block-icon'
) }
icon={ icons[ icon ] }
size={ size }
size={ iconSize }
/>
);
}

0 comments on commit 13fb9b0

Please sign in to comment.