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

@@ -6,8 +6,8 @@ export const LOGIN = BASE_URL + "/login";
export const SEND_OTP_TOKEN = BASE_URL + "/otp";
export const REGISTER = BASE_URL + "/register";
export const USER_INFO = BASE_URL + "/profile/info";
export const SEND_LOAN_REQUEST_NAVGAN = BASE_URL + "/navgan/store_loan";
export const SEND_LOAN_REQUEST_WELFARE = BASE_URL + "/khadamat/store_loan";
export const SEND_LOAN_REQUEST_NAVGAN = BASE_URL + "/navgan/loan/store";
export const SEND_LOAN_REQUEST_WELFARE = BASE_URL + "/refahi/loan/store";
export const GET_PROVINCE_LIST = BASE_URL + "/provinces";

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,
},
],