Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
robbins23 committed Jun 15, 2024
1 parent dd58d67 commit ede1915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/containers/left-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function LeftSidebar(props: LeftSidebarProps) {
) : (
<Link
href={route.path}
className={`${true ? 'font-semibold bg-base-200 ' : 'font-normal'}`
className={`${pathname == route.path ? 'font-semibold bg-base-200 ' : 'font-normal'}`
}
>
{route.icon} {route.pageName}
Expand Down
4 changes: 2 additions & 2 deletions src/containers/sidebar-submenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function SidebarSubmenu({ submenu, pageName, icon }: SidebarSubmenuProps) {
}, [submenu, location.pathname]);

return (
<div className="flex flex-col bg-base-200">
<div className="flex flex-col hover:bg-base-100 bg-base-100">
{/** Route header */}
<div className="w-full block" onClick={() => setIsExpanded(!isExpanded)}>
{icon} {pageName}
Expand All @@ -42,7 +42,7 @@ function SidebarSubmenu({ submenu, pageName, icon }: SidebarSubmenuProps) {
<ul className="menu menu-compact">
{submenu && submenu.map((m, k) => (
<li key={k}>
<Link href={m.path}>
<Link href={m.path} className={`${pathname == m.path ? "font-semibold bg-base-200" : ""}`}>
{m.icon} {m.pageName}
{pathname === m.path ? (
<span
Expand Down

0 comments on commit ede1915

Please sign in to comment.