Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Add the correct appender button for non empty groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ralucaStan committed Feb 9, 2022
1 parent c065387 commit 4b41d7d
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const Edit = ( { clientId }: { clientId: string } ): JSX.Element => {
allowedBlocks={ allowedBlocks }
template={ defaultTemplate }
templateLock={ false }
renderAppender={ InnerBlocks.ButtonBlockAppender }
/>
</Main>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const Edit = ( { clientId }: { clientId: string } ): JSX.Element => {
allowedBlocks={ allowedBlocks }
template={ defaultTemplate }
templateLock={ false }
renderAppender={ InnerBlocks.ButtonBlockAppender }
/>
</Sidebar>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ export const Edit = ( { clientId }: { clientId: string } ): JSX.Element => {
{ ...blockProps }
hidden={ currentView !== 'woocommerce/empty-cart-block' }
>
<InnerBlocks
template={ defaultTemplate }
templateLock={ false }
renderAppender={ InnerBlocks.ButtonBlockAppender }
/>
<InnerBlocks template={ defaultTemplate } templateLock={ false } />
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ export const Edit = (): JSX.Element => {
currentView !== 'woocommerce/empty-mini-cart-contents-block'
}
>
<InnerBlocks
allowedBlocks={ getMiniCartAllowedBlocks() }
renderAppender={ InnerBlocks.ButtonBlockAppender }
/>
<InnerBlocks allowedBlocks={ getMiniCartAllowedBlocks() } />
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const Edit = (): JSX.Element => {
<div { ...blockProps }>
<InnerBlocks
template={ defaultTemplate }
renderAppender={ InnerBlocks.ButtonBlockAppender }
templateLock={ false }
allowedBlocks={ getMiniCartAllowedBlocks() }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const Edit = ( {
allowedBlocks={ allowedBlocks }
templateLock={ false }
template={ defaultTemplate }
renderAppender={ InnerBlocks.ButtonBlockAppender }
/>
</form>
</Main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const Edit = ( {
allowedBlocks={ allowedBlocks }
templateLock={ false }
template={ defaultTemplate }
renderAppender={ InnerBlocks.ButtonBlockAppender }
/>
</Sidebar>
);
Expand Down

0 comments on commit 4b41d7d

Please sign in to comment.