From 3fbacbad91f87c1f995dd15bfc3312ba8da2982c Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Thu, 12 Dec 2024 12:48:55 +0100 Subject: [PATCH] Remove unnecessary MenuSubmenuTriggerItemProps type --- packages/components/src/menu/submenu-trigger-item.tsx | 4 ++-- packages/components/src/menu/types.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/components/src/menu/submenu-trigger-item.tsx b/packages/components/src/menu/submenu-trigger-item.tsx index 5bad0fe16d035..23932a14bdaff 100644 --- a/packages/components/src/menu/submenu-trigger-item.tsx +++ b/packages/components/src/menu/submenu-trigger-item.tsx @@ -13,14 +13,14 @@ import { chevronRightSmall } from '@wordpress/icons'; * Internal dependencies */ import type { WordPressComponentProps } from '../context'; -import type { MenuSubmenuTriggerItemProps } from './types'; +import type { MenuItemProps } from './types'; import { MenuContext } from './context'; import { MenuItem } from './item'; import * as Styled from './styles'; export const MenuSubmenuTriggerItem = forwardRef< HTMLDivElement, - WordPressComponentProps< MenuSubmenuTriggerItemProps, 'div', false > + WordPressComponentProps< MenuItemProps, 'div', false > >( function MenuSubmenuTriggerItem( { suffix, ...otherProps }, ref ) { const menuContext = useContext( MenuContext ); diff --git a/packages/components/src/menu/types.ts b/packages/components/src/menu/types.ts index 3c3d7aa42720f..f58b5bcc89b95 100644 --- a/packages/components/src/menu/types.ts +++ b/packages/components/src/menu/types.ts @@ -127,8 +127,6 @@ export interface MenuTriggerButtonProps { accessibleWhenDisabled?: Ariakit.MenuButtonProps[ 'accessibleWhenDisabled' ]; } -export interface MenuSubmenuTriggerItemProps extends MenuItemProps {} - export interface MenuGroupProps { /** * The contents of the menu group (ie. an optional menu group label and one