Skip to content

Commit

Permalink
Mark optional, use SetState from /aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceR committed Nov 27, 2024
1 parent b9a264c commit e4cd0f3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<React.SetStateAction<boolean[]>>
| undefined = undefined
isOpen?: boolean[],
setIsOpen?: SetState<boolean[]>
): JSX.Element[] => {
return navItems.map((item, index) => {
switch (item.type) {
Expand Down

0 comments on commit e4cd0f3

Please sign in to comment.