diff --git a/app/scripts/components/common/page-header/nav/create-dynamic-nav-menu-list.tsx b/app/scripts/components/common/page-header/nav/create-dynamic-nav-menu-list.tsx index 206a9f782..764853687 100644 --- a/app/scripts/components/common/page-header/nav/create-dynamic-nav-menu-list.tsx +++ b/app/scripts/components/common/page-header/nav/create-dynamic-nav-menu-list.tsx @@ -4,14 +4,13 @@ import { NavDropDownButton } from './nav-dropdown-button'; import { NavItemExternalLink, NavItemInternalLink } from './nav-item-links'; import { NavItemCTA } from './nav-item-cta'; import { LinkProperties } from '$types/veda'; +import { SetState } from '$types/aliases'; export const createDynamicNavMenuList = ( navItems: NavItem[], linkProperties: LinkProperties, - isOpen: boolean[] | undefined = undefined, - setIsOpen: - | React.Dispatch> - | undefined = undefined + isOpen?: boolean[], + setIsOpen?: SetState ): JSX.Element[] => { return navItems.map((item, index) => { switch (item.type) {