Skip to content

Commit

Permalink
fix(SidebarE): Resolve strict null errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jpveooys committed Feb 10, 2022
1 parent 88c7574 commit 778ac36
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface SidebarNavEProps extends Nav<NavItem> {

function mapNavItem(
navItem: React.ReactElement<SidebarNavItemEProps>,
onClick: (e: React.MouseEvent<HTMLElement>) => void
onClick: ((e: React.MouseEvent<HTMLElement>) => void) | undefined
) {
warnIfOverwriting(navItem.props, 'onClick', SidebarNavItemE.name)

Expand All @@ -41,7 +41,7 @@ function mapNavItem(
}

export const SidebarNavE: React.FC<SidebarNavEProps> = ({
children,
children = [],
onBlur,
onFocus,
onItemClick,
Expand Down

0 comments on commit 778ac36

Please sign in to comment.