feat:update all

This commit is contained in:
TuanVT
2026-06-03 16:42:07 +07:00
parent 62ca6dd0f9
commit 77dd05932e
36 changed files with 3098 additions and 693 deletions
@@ -4,8 +4,6 @@ import React, { useCallback } from "react";
import { usePathname } from "next/navigation";
import Link from "next/link";
import { Menus, PATH } from "@/constant/config";
import Image from "next/image";
import icons from "@/constant/images/icons";
import clsx from "clsx";
import { Hospital } from "lucide-react";
@@ -14,6 +12,11 @@ const Navbar = () => {
const checkActive = useCallback(
(pathActive: string) => {
// Handle root path "/" as dashboard
if (pathname === "/" && pathActive === "/dashboard") {
return true;
}
const currentRoute = pathname.split("/")[1];
return pathActive === `/${currentRoute}`;
},