Skip to content

Commit

Permalink
Remove unnecessary MenuSubmenuTriggerItemProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Dec 12, 2024
1 parent 563a455 commit 3fbacba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/menu/submenu-trigger-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
2 changes: 0 additions & 2 deletions packages/components/src/menu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fbacba

Please sign in to comment.