Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit fdd1ee5

Browse files
committed
fix(navbar): make NavLink onClick optional
1 parent dc52d53 commit fdd1ee5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Navbar/interfaces.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface NavLinkElement {
1313
/** The link name */
1414
label: string
1515
/** A click handle which will redirect the user to whenever it is clicked */
16-
onClick: (event: React.MouseEvent<any>) => void
16+
onClick?: (event: React.MouseEvent<any>) => void
1717
/** Determines the href */
1818
href?: string
1919
}

0 commit comments

Comments
 (0)