diff --git a/package.json b/package.json index e44361c..9b8b7b0 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@mui/icons-material": "^5.11.16", "@mui/lab": "^5.0.0-alpha.152", "@mui/material": "^5.12.0", - "@witel/webapp-builder": "^1.0.2", + "@witel/webapp-builder": "^1.0.6", "axios": "^1.4.0", "colord": "^2.9.3", "eslint": "8.36.0", diff --git a/src/core/data/sidebarMenu.js b/src/core/data/sidebarMenu.js index 1869bae..5f24a93 100644 --- a/src/core/data/sidebarMenu.js +++ b/src/core/data/sidebarMenu.js @@ -6,27 +6,30 @@ const sidebarMenu = [ [ { key: "sidebar.dashboard", + name: "sidebar.dashboard", type: "page", route: "/dashboard", - icon: , + icon: , selected: false, - permission_name: "all" + permission: "all" }, { key: "sidebar.add-request-loan", + name: "sidebar.add-request-loan", type: "page", route: "/dashboard/navgan/add-request-loan", - icon: , + icon: , selected: false, - permission_name: "can_request_a_new_loan" + permission: "can_request_a_new_loan" }, { key: "sidebar.followUp-loan", + name: "sidebar.followUp-loan", type: "page", route: "/dashboard/navgan/followUp-loan", - icon: , + icon: , selected: false, - permission_name: "all" + permission: "all" }, ], ]; diff --git a/src/layouts/dashboard.jsx b/src/layouts/dashboard.jsx index 945416c..9b1a916 100644 --- a/src/layouts/dashboard.jsx +++ b/src/layouts/dashboard.jsx @@ -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 ( <> - + ) }