add loan request/change structure and documentary/ making middle ware for user type/update breadcrumb

This commit is contained in:
2023-08-19 13:38:51 +03:30
parent dd239ac46c
commit fd1a6bcf2e
18 changed files with 382 additions and 156 deletions

View File

@@ -9,20 +9,39 @@ const sidebarMenu = [
type: "page",
route: "/dashboard",
icon: <SpaceDashboardIcon/>,
userType: 0,
selected: false,
},
{
key: "sidebar.loan-request",
key: "sidebar.add-request-loan",
type: "page",
route: "/dashboard/loan-request",
route: "/dashboard/navgan/add-request-loan",
icon: <DataSaverOnIcon/>,
userType: 1,
selected: false,
},
{
key: "sidebar.loan-follow-up",
key: "sidebar.followUp-loan",
type: "page",
route: "/dashboard/loan-follow-up",
route: "/dashboard/navgan/followUp-loan",
icon: <BookmarkAddedIcon/>,
userType: 1,
selected: false,
},
{
key: "sidebar.add-request-loan",
type: "page",
route: "/dashboard/refahi/add-request-loan",
icon: <DataSaverOnIcon/>,
userType: 2,
selected: false,
},
{
key: "sidebar.followUp-loan",
type: "page",
route: "/dashboard/refahi/followUp-loan",
icon: <BookmarkAddedIcon/>,
userType: 2,
selected: false,
},
],