Skip to content

Commit

Permalink
Style Book: do not use Composite store (#65047)
Browse files Browse the repository at this point in the history
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Sep 4, 2024
1 parent b1143fa commit 20f7dfd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/edit-site/src/components/style-book/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const { mergeBaseAndUserConfigs } = unlock( editorPrivateApis );
const {
CompositeV2: Composite,
CompositeItemV2: CompositeItem,
useCompositeStoreV2: useCompositeStore,
Tabs,
} = unlock( componentsPrivateApis );

Expand Down Expand Up @@ -383,11 +382,9 @@ const StyleBookBody = ( {

const Examples = memo(
( { className, examples, category, label, isSelected, onSelect } ) => {
const compositeStore = useCompositeStore( { orientation: 'vertical' } );

return (
<Composite
store={ compositeStore }
orientation="vertical"
className={ className }
aria-label={ label }
role="grid"
Expand Down

0 comments on commit 20f7dfd

Please sign in to comment.