Skip to content

Commit

Permalink
fix: syntaxe typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnogueira committed Feb 2, 2024
1 parent 46553fa commit 1943490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions training/06-inner-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
] }
]
}
);

Expand All @@ -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...' }],
]}
]
}
);

Expand Down

0 comments on commit 1943490

Please sign in to comment.