Skip to content

Commit

Permalink
Block Pattern Setup: do not use Composite store (#65039)
Browse files Browse the repository at this point in the history
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
3 people authored Sep 4, 2024
1 parent 0a86ab3 commit 1d5340a
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ import usePatternsSetup from './use-patterns-setup';
import { VIEWMODES } from './constants';
import { unlock } from '../../lock-unlock';

const {
CompositeV2: Composite,
CompositeItemV2: CompositeItem,
useCompositeStoreV2: useCompositeStore,
} = unlock( componentsPrivateApis );
const { CompositeV2: Composite, CompositeItemV2: CompositeItem } = unlock(
componentsPrivateApis
);

const SetupContent = ( {
viewMode,
Expand All @@ -35,7 +33,6 @@ const SetupContent = ( {
onBlockPatternSelect,
showTitles,
} ) => {
const compositeStore = useCompositeStore();
const containerClass = 'block-editor-block-pattern-setup__container';

if ( viewMode === VIEWMODES.carousel ) {
Expand Down Expand Up @@ -65,7 +62,6 @@ const SetupContent = ( {
return (
<div className="block-editor-block-pattern-setup__grid">
<Composite
store={ compositeStore }
role="listbox"
className={ containerClass }
aria-label={ __( 'Patterns list' ) }
Expand Down

0 comments on commit 1d5340a

Please sign in to comment.