Skip to content

Commit 1a1e3a9

Browse files
ciampotyxla
andauthored
Global Styles Shadow Panel: do not use Composite store (#65041)
Co-authored-by: ciampo <[email protected]> Co-authored-by: tyxla <[email protected]>
1 parent bf468ed commit 1a1e3a9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

‎packages/block-editor/src/components/global-styles/shadow-panel-components.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ import { unlock } from '../../lock-unlock';
3232
* @type {Array}
3333
*/
3434
const EMPTY_ARRAY = [];
35-
const {
36-
CompositeItemV2: CompositeItem,
37-
CompositeV2: Composite,
38-
useCompositeStoreV2: useCompositeStore,
39-
} = unlock( componentsPrivateApis );
35+
const { CompositeItemV2: CompositeItem, CompositeV2: Composite } = unlock(
36+
componentsPrivateApis
37+
);
4038

4139
export function ShadowPopoverContainer( { shadow, onShadowChange, settings } ) {
4240
const shadows = useShadowPresets( settings );
@@ -66,10 +64,8 @@ export function ShadowPopoverContainer( { shadow, onShadowChange, settings } ) {
6664
}
6765

6866
export function ShadowPresets( { presets, activeShadow, onSelect } ) {
69-
const compositeStore = useCompositeStore();
7067
return ! presets ? null : (
7168
<Composite
72-
store={ compositeStore }
7369
role="listbox"
7470
className="block-editor-global-styles__shadow__list"
7571
aria-label={ __( 'Drop shadows' ) }

0 commit comments

Comments
 (0)