From 1f6490cada282538962bd760d2943d93e2b9ce45 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Thu, 4 May 2023 10:41:53 +1000 Subject: [PATCH] Tweak popoverProps type --- packages/components/src/palette-edit/types.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/components/src/palette-edit/types.ts b/packages/components/src/palette-edit/types.ts index 9925070a300e5..1cc0611628c2f 100644 --- a/packages/components/src/palette-edit/types.ts +++ b/packages/components/src/palette-edit/types.ts @@ -6,9 +6,8 @@ import type { Key, MouseEventHandler } from 'react'; /** * Internal dependencies */ +import type Popover from '../popover'; import type { HeadingSize } from '../heading/types'; -import type { PopoverProps } from '../popover/types'; -import type { WordPressComponentProps } from '../ui/context'; export type Color = { color: string; @@ -64,7 +63,7 @@ export type BasePaletteEdit = { * Props to pass through to the underlying Popover component. */ popoverProps?: Omit< - WordPressComponentProps< PopoverProps, 'div', false >, + React.ComponentPropsWithoutRef< typeof Popover >, 'children' >; };