fix breadcrumbs

This commit is contained in:
Yasiu1376
2023-12-12 14:46:31 +03:30
parent 05e48153eb
commit 9298ce50d1

View File

@@ -2,6 +2,7 @@ import {DashboardLayout as DashboardLayoutPure, useUser} from "@witel/webapp-bui
import headerProfileItems from "@/core/data/headerProfileItems";
import sidebarMenu from "@/core/data/sidebarMenu";
import {GET_SIDEBAR_NOTIFICATION} from "@/core/data/apiRoutes";
import UserInfo from "@/middlewares/UserInfo";
const DashboardLayout = (props) => {
const {user} = useUser()
@@ -9,13 +10,13 @@ const DashboardLayout = (props) => {
return (
<>
<DashboardLayoutPure
middlewares={{list: [], props: {...middlewaresProps}}}
middlewares={{list: [UserInfo], props: {...middlewaresProps}}}
loginUrl={'/login'}
user_introduction={user.type_name}
headerProfileItems={headerProfileItems}
sidebarMenu={sidebarMenu}
urlNotification={GET_SIDEBAR_NOTIFICATION}
BC_segmentsToRemove={[]}
BC_segmentsToRemove={['navgan']}
{...props}
/>
</>