From 1943490713bb542a9b7689f16a31e12131b2e8b9 Mon Sep 17 00:00:00 2001 From: lcnogueira Date: Fri, 2 Feb 2024 15:55:46 -0300 Subject: [PATCH] fix: syntaxe typos --- training/06-inner-blocks.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/training/06-inner-blocks.md b/training/06-inner-blocks.md index 1f5838a..420bfdd 100644 --- a/training/06-inner-blocks.md +++ b/training/06-inner-blocks.md @@ -165,12 +165,12 @@ We can improve the UX by adding a list of allowed blocks to the inner blocks com const innerBlocksProps = useInnerBlocksProps( {}, { - allowedBlocks: { [ + allowedBlocks: [ 'core/heading', 'core/paragraph', 'core/buttons', 'core/button', - ] } + ] } ); @@ -193,10 +193,10 @@ To achieve this we can define a `template` on the inner block area. The template const innerBlocksProps = useInnerBlocksProps( {}, { - template: {[ + template: [ ['core/heading', { level: 2, placeholder: 'Insert your heading here...' }], ['core/paragraph', { placeholder: 'Write some description text here...' }], - ]} + ] } );