Skip to content

Commit

Permalink
Tweak popoverProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 4, 2023
1 parent 2db40ff commit 1f6490c
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 1f6490c

Please sign in to comment.