From 40b79fe375b84a4eb554f330b42711399e7167fc Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Fri, 8 Sep 2023 11:11:50 -0400 Subject: [PATCH] fix(NavItem): fix incorrect component typing --- packages/react-core/src/components/Nav/NavItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-core/src/components/Nav/NavItem.tsx b/packages/react-core/src/components/Nav/NavItem.tsx index aca9e848505..b107f27fcfd 100644 --- a/packages/react-core/src/components/Nav/NavItem.tsx +++ b/packages/react-core/src/components/Nav/NavItem.tsx @@ -27,7 +27,7 @@ export interface NavItemProps extends Omit, ' /** Callback for item click */ onClick?: NavSelectClickHandler; /** Component used to render NavItems if React.isValidElement(children) is false */ - component?: React.ReactNode; + component?: React.ElementType | React.ComponentType; /** Flyout of a nav item. This should be a Menu component. Should not be used if the to prop is defined. */ flyout?: React.ReactElement; /** Callback when flyout is opened or closed */