diff --git a/packages/react/src/components/SideBar/SideBarItem.tsx b/packages/react/src/components/SideBar/SideBarItem.tsx index 87fa4e8a1..318b467bc 100644 --- a/packages/react/src/components/SideBar/SideBarItem.tsx +++ b/packages/react/src/components/SideBar/SideBarItem.tsx @@ -9,7 +9,7 @@ export interface SideBarItemProps extends React.HTMLAttributes { const SideBarItem: React.ComponentType< React.PropsWithChildren -> = ({ children, autoClickLink, ...other }: SideBarItemProps) => { +> = ({ children, autoClickLink = true, ...other }: SideBarItemProps) => { const onClick = (e: React.MouseEvent) => { if (!autoClickLink) { return; @@ -27,8 +27,5 @@ const SideBarItem: React.ComponentType< }; SideBarItem.displayName = 'SideBarItem'; -SideBarItem.defaultProps = { - autoClickLink: true -}; export default SideBarItem;