fix breadcrumbs
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user