Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/components/src/tools-panel/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export type ToolsPanelHeaderProps = {
/**
* The dropdown menu props to configure the panel's `DropdownMenu`.
*/
dropdownMenuProps?: React.ComponentProps< typeof DropdownMenu >;
dropdownMenuProps?: Omit<
React.ComponentProps< typeof DropdownMenu >,
'label'
>;
Comment on lines -80 to +83
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this format is correct, but I don't know how to describe it in the README 😅

cc @WordPress/gutenberg-components

Additionally, I think we need to update here as well:

dropdownMenuProps?: React.ComponentProps< typeof DropdownMenu >;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how to describe it in the README 😅

Mm, I'm fine with this for now, it's not crucial information. And we won't have to think about this once these are converted to an autogenerated readme!

/**
* The heading level of the panel's header.
*
Expand Down
Loading