Skip to content

Commit b047647

Browse files
committed
update types for navitem
1 parent fa69eaf commit b047647

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/Nav/types.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { FC, RefObject, SVGProps } from "react"
22
import type { IconType } from "react-icons"
3-
import type { IconProps } from "@chakra-ui/react"
43

54
type LinkOnly = { href: string; items?: never }
65
type ItemsOnly = { items: NavItem[]; href?: never }
@@ -9,10 +8,7 @@ type LinkXorItems = LinkOnly | ItemsOnly
98
export type NavItem = {
109
label: string
1110
description: string
12-
icon?:
13-
| IconType
14-
| FC<SVGProps<SVGElement>>
15-
| ((props: IconProps) => JSX.Element)
11+
icon?: IconType | FC<SVGProps<SVGElement>>
1612
} & LinkXorItems
1713

1814
export type NavSectionKey =

0 commit comments

Comments
 (0)