packages/core: fix type issues in sidebar
This commit is contained in:
@@ -139,7 +139,7 @@ export const SidebarItem: FC<SidebarItemProps> = ({
|
||||
<NavLink
|
||||
className={clsx(classes.root, classes.closed)}
|
||||
activeClassName={classes.selected}
|
||||
isActive={(match) => match && !disableSelected}
|
||||
isActive={(match) => Boolean(match && !disableSelected)}
|
||||
exact
|
||||
to={to}
|
||||
onClick={onClick}
|
||||
@@ -153,7 +153,7 @@ export const SidebarItem: FC<SidebarItemProps> = ({
|
||||
<NavLink
|
||||
className={clsx(classes.root, classes.open)}
|
||||
activeClassName={classes.selected}
|
||||
isActive={(match) => match && !disableSelected}
|
||||
isActive={(match) => Boolean(match && !disableSelected)}
|
||||
exact
|
||||
to={to}
|
||||
onClick={onClick}
|
||||
|
||||
@@ -48,7 +48,7 @@ export const SampleSidebar = () => (
|
||||
{/* <SidebarLogo /> */}
|
||||
<SidebarSearchField onSearch={handleSearch} />
|
||||
<SidebarDivider />
|
||||
<SidebarItem selected icon={HomeOutlinedIcon} to="#" text="Home" />
|
||||
<SidebarItem icon={HomeOutlinedIcon} to="#" text="Home" />
|
||||
<SidebarItem icon={HomeOutlinedIcon} to="#" text="Plugins" />
|
||||
<SidebarItem icon={AddCircleOutlineIcon} to="#" text="Create..." />
|
||||
<SidebarDivider />
|
||||
|
||||
Reference in New Issue
Block a user