Remove unnecessary ternary operator
Signed-off-by: hiba-aldalaty <hibaaldalaty@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ export const SidebarSubmenuItem = (props: SidebarSubmenuItemProps) => {
|
||||
const { title, to, icon: Icon, dropdownItems } = props;
|
||||
const classes = useStyles();
|
||||
const { pathname: locationPathname, search: locationSearch } = useLocation();
|
||||
const { pathname: toPathname, search: toSearch } = useResolvedPath(to ?? '');
|
||||
const { pathname: toPathname, search: toSearch } = useResolvedPath(to);
|
||||
const { setIsHoveredOn } = useContext(SidebarItemWithSubmenuContext);
|
||||
const closeSubmenu = () => {
|
||||
setIsHoveredOn(false);
|
||||
|
||||
Reference in New Issue
Block a user