Skip to content

Commit 20f7dfd

Browse files
ciampotyxla
andauthored
Style Book: do not use Composite store (#65047)
Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org>
1 parent b1143fa commit 20f7dfd

File tree

1 file changed

+1
-4
lines changed
  • packages/edit-site/src/components/style-book

1 file changed

+1
-4
lines changed

packages/edit-site/src/components/style-book/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const { mergeBaseAndUserConfigs } = unlock( editorPrivateApis );
4848
const {
4949
CompositeV2: Composite,
5050
CompositeItemV2: CompositeItem,
51-
useCompositeStoreV2: useCompositeStore,
5251
Tabs,
5352
} = unlock( componentsPrivateApis );
5453

@@ -383,11 +382,9 @@ const StyleBookBody = ( {
383382

384383
const Examples = memo(
385384
( { className, examples, category, label, isSelected, onSelect } ) => {
386-
const compositeStore = useCompositeStore( { orientation: 'vertical' } );
387-
388385
return (
389386
<Composite
390-
store={ compositeStore }
387+
orientation="vertical"
391388
className={ className }
392389
aria-label={ label }
393390
role="grid"

0 commit comments

Comments
 (0)