Skip to content

Commit

Permalink
Block Inserter Media List: do not use Composite store (#65043)
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 be1617d commit ba63b90
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@ import { __ } from '@wordpress/i18n';
import { MediaPreview } from './media-preview';
import { unlock } from '../../../lock-unlock';

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

function MediaList( {
mediaList,
category,
onClick,
label = __( 'Media List' ),
} ) {
const compositeStore = useCompositeStore();
return (
<Composite
store={ compositeStore }
role="listbox"
className="block-editor-inserter__media-list"
aria-label={ label }
Expand Down

0 comments on commit ba63b90

Please sign in to comment.