diff --git a/src/layouts/dashboardLayouts/sidebar/SidebarDrawer.jsx b/src/layouts/dashboardLayouts/sidebar/SidebarDrawer.jsx index 4c65885..466c743 100644 --- a/src/layouts/dashboardLayouts/sidebar/SidebarDrawer.jsx +++ b/src/layouts/dashboardLayouts/sidebar/SidebarDrawer.jsx @@ -1,10 +1,12 @@ +import useUser from "@/lib/app/hooks/useUser"; import { Divider, Stack, Toolbar, Typography } from "@mui/material"; import { useTranslations } from "next-intl"; import SidebarList from "./SidebarList"; -import StyledImage from "@/core/components/StyledImage"; const SidebarDrawer = ({ handleDrawerToggle }) => { + const { user } = useUser(); const t = useTranslations(); + return ( <> @@ -12,12 +14,7 @@ const SidebarDrawer = ({ handleDrawerToggle }) => { {t("app_short_name")} - - { - t("user_navy") /* make if on thease t("user_welfare_services") - t("user_navy") */ - } - + {user.type_name}