From e4cd0f38e24fefefbe30db850f813e242d546a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alice=20R=C3=BChl?= Date: Wed, 27 Nov 2024 12:18:08 +0100 Subject: [PATCH] Mark optional, use SetState from /aliases --- .../page-header/nav/create-dynamic-nav-menu-list.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) {