fixed bugs for dashboard layout

This commit is contained in:
AmirHossein Mahmoodi
2023-12-11 16:29:59 +03:30
parent 61d947cac6
commit fc944c0d35
3 changed files with 21 additions and 10 deletions

View File

@@ -1,13 +1,21 @@
import {DashboardLayout as DashboardLayoutPure} from "@witel/webapp-builder";
import {DashboardLayout as DashboardLayoutPure, useUser} from "@witel/webapp-builder";
import headerProfileItems from "@/core/data/headerProfileItems";
import sidebarMenu from "@/core/data/sidebarMenu";
import {GET_SIDEBAR_NOTIFICATION} from "@/core/data/apiRoutes";
const DashboardLayout = (props) => {
const {user} = useUser()
return (
<>
<DashboardLayoutPure headerProfileItems={headerProfileItems} sidebarMenu={sidebarMenu}
urlNotification={GET_SIDEBAR_NOTIFICATION} {...props} />
<DashboardLayoutPure
loginUrl={'/login'}
user_introduction={user.type_name}
headerProfileItems={headerProfileItems}
sidebarMenu={sidebarMenu}
urlNotification={GET_SIDEBAR_NOTIFICATION}
BC_segmentsToRemove={[]}
{...props}
/>
</>
)
}