Skip to content

Commit

Permalink
Style Book: do not use Composite store
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 4, 2024
1 parent 3aaf6ff commit eaf7a18
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 eaf7a18

Please sign in to comment.