diff --git a/packages/block-library/src/form-submit-button/save.js b/packages/block-library/src/form-submit-button/save.js index ba361ebe9db209..eb703c4a0a4c54 100644 --- a/packages/block-library/src/form-submit-button/save.js +++ b/packages/block-library/src/form-submit-button/save.js @@ -3,12 +3,11 @@ */ import { useBlockProps, InnerBlocks } from '@wordpress/block-editor'; -const Save = () => { +export default function save() { const blockProps = useBlockProps.save(); return (
); -}; -export default Save; +} diff --git a/packages/block-library/src/form/save.js b/packages/block-library/src/form/save.js index a824fc076d2ac3..daeedd3ef67e8c 100644 --- a/packages/block-library/src/form/save.js +++ b/packages/block-library/src/form/save.js @@ -3,7 +3,7 @@ */ import { InnerBlocks, useBlockProps } from '@wordpress/block-editor'; -const Save = ( { attributes } ) => { +export default function save( { attributes } ) { const blockProps = useBlockProps.save(); const { submissionMethod } = attributes; @@ -16,5 +16,4 @@ const Save = ( { attributes } ) => { ); -}; -export default Save; +} diff --git a/packages/block-library/src/query-no-results/save.js b/packages/block-library/src/query-no-results/save.js index 70161d85c27b16..17571d8f30d2de 100644 --- a/packages/block-library/src/query-no-results/save.js +++ b/packages/block-library/src/query-no-results/save.js @@ -3,6 +3,6 @@ */ import { InnerBlocks } from '@wordpress/block-editor'; -export default function QueryNoResultsSave() { +export default function save() { return ; } diff --git a/packages/block-library/src/query/save.js b/packages/block-library/src/query/save.js index d8ae9942ed6f1b..0f8be90273bef1 100644 --- a/packages/block-library/src/query/save.js +++ b/packages/block-library/src/query/save.js @@ -3,7 +3,7 @@ */ import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor'; -export default function QuerySave( { attributes: { tagName: Tag = 'div' } } ) { +export default function save( { attributes: { tagName: Tag = 'div' } } ) { const blockProps = useBlockProps.save(); const innerBlocksProps = useInnerBlocksProps.save( blockProps ); return ;