Skip to content
Prev Previous commit
Next Next commit
Tweak popoverProps type
  • Loading branch information
aaronrobertshaw committed May 4, 2023
commit 1f6490cada282538962bd760d2943d93e2b9ce45
5 changes: 2 additions & 3 deletions packages/components/src/palette-edit/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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'
>;
};
Expand Down