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