Feature/user info request
This commit is contained in:
@@ -2,21 +2,21 @@ import SpaceDashboardIcon from "@mui/icons-material/SpaceDashboard";
|
||||
import DirectionsRailwayIcon from "@mui/icons-material/DirectionsRailway";
|
||||
import AssignmentIndIcon from "@mui/icons-material/AssignmentInd";
|
||||
import DesktopWindowsIcon from "@mui/icons-material/DesktopWindows";
|
||||
import GavelIcon from '@mui/icons-material/Gavel';
|
||||
import BusinessCenterIcon from '@mui/icons-material/BusinessCenter';
|
||||
import GradingIcon from '@mui/icons-material/Grading';
|
||||
import SupervisedUserCircleIcon from '@mui/icons-material/SupervisedUserCircle';
|
||||
import Diversity3Icon from '@mui/icons-material/Diversity3';
|
||||
import PaidIcon from '@mui/icons-material/Paid';
|
||||
import ManageAccountsIcon from '@mui/icons-material/ManageAccounts';
|
||||
import PersonIcon from '@mui/icons-material/Person';
|
||||
import AccessibilityIcon from '@mui/icons-material/Accessibility';
|
||||
import AssessmentIcon from '@mui/icons-material/Assessment';
|
||||
import SecurityIcon from '@mui/icons-material/Security';
|
||||
import SettingsIcon from '@mui/icons-material/Settings';
|
||||
import RepartitionIcon from '@mui/icons-material/Repartition';
|
||||
import AccountBalanceIcon from '@mui/icons-material/AccountBalance';
|
||||
import RepeatIcon from '@mui/icons-material/Repeat';
|
||||
import GavelIcon from "@mui/icons-material/Gavel";
|
||||
import BusinessCenterIcon from "@mui/icons-material/BusinessCenter";
|
||||
import GradingIcon from "@mui/icons-material/Grading";
|
||||
import SupervisedUserCircleIcon from "@mui/icons-material/SupervisedUserCircle";
|
||||
import Diversity3Icon from "@mui/icons-material/Diversity3";
|
||||
import PaidIcon from "@mui/icons-material/Paid";
|
||||
import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
|
||||
import PersonIcon from "@mui/icons-material/Person";
|
||||
import AccessibilityIcon from "@mui/icons-material/Accessibility";
|
||||
import AssessmentIcon from "@mui/icons-material/Assessment";
|
||||
import SecurityIcon from "@mui/icons-material/Security";
|
||||
import SettingsIcon from "@mui/icons-material/Settings";
|
||||
import RepartitionIcon from "@mui/icons-material/Repartition";
|
||||
import AccountBalanceIcon from "@mui/icons-material/AccountBalance";
|
||||
import RepeatIcon from "@mui/icons-material/Repeat";
|
||||
|
||||
const sidebarMenu = [
|
||||
[
|
||||
@@ -24,7 +24,7 @@ const sidebarMenu = [
|
||||
key: "sidebar.dashboard",
|
||||
type: "page",
|
||||
route: "/dashboard",
|
||||
icon: <SpaceDashboardIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <SpaceDashboardIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["all"],
|
||||
},
|
||||
@@ -33,7 +33,7 @@ const sidebarMenu = [
|
||||
name: "reports",
|
||||
type: "page",
|
||||
route: "/dashboard/reports",
|
||||
icon: <AssessmentIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["view_reports_navgan"],
|
||||
},
|
||||
@@ -42,18 +42,19 @@ const sidebarMenu = [
|
||||
name: "loan-history",
|
||||
type: "page",
|
||||
route: "/dashboard/loan-history",
|
||||
icon: <SecurityIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <SecurityIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["view_navgan_loans", "view_navgan_loans_province"],
|
||||
},
|
||||
], [
|
||||
],
|
||||
[
|
||||
{
|
||||
key: "sidebar.reserve-loan",
|
||||
secondary: "secondary.navgan-province-manager",
|
||||
name: "reserve_loan",
|
||||
type: "page",
|
||||
route: "/dashboard/reserve-loan",
|
||||
icon: <RepartitionIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <RepartitionIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_reserved_loans"],
|
||||
},
|
||||
@@ -63,7 +64,7 @@ const sidebarMenu = [
|
||||
name: "province_working_group",
|
||||
type: "page",
|
||||
route: "/dashboard/passenger-boss",
|
||||
icon: <AssignmentIndIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <AssignmentIndIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_province_working_group_navgan"],
|
||||
},
|
||||
@@ -74,7 +75,7 @@ const sidebarMenu = [
|
||||
name: "transportation_assistant",
|
||||
type: "page",
|
||||
route: "/dashboard/transportation-assistant",
|
||||
icon: <DirectionsRailwayIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <DirectionsRailwayIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_transportation_navgan"],
|
||||
},
|
||||
@@ -84,7 +85,7 @@ const sidebarMenu = [
|
||||
name: "province_manager_navgan",
|
||||
type: "page",
|
||||
route: "/dashboard/navgan-province-manager",
|
||||
icon: <DesktopWindowsIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <DesktopWindowsIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_province_affairs_navgan"],
|
||||
},
|
||||
@@ -94,7 +95,7 @@ const sidebarMenu = [
|
||||
name: "management",
|
||||
type: "page",
|
||||
route: "/dashboard/bank-management",
|
||||
icon: <AccountBalanceIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <AccountBalanceIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["tracking_bank_loans"],
|
||||
},
|
||||
@@ -104,7 +105,7 @@ const sidebarMenu = [
|
||||
name: "loan-followup",
|
||||
type: "page",
|
||||
route: "/dashboard/loan-followup",
|
||||
icon: <RepeatIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <RepeatIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_vezarat_eghtesad_loans"], //permission should change
|
||||
},
|
||||
@@ -114,18 +115,19 @@ const sidebarMenu = [
|
||||
name: "navgan_loan_management",
|
||||
type: "page",
|
||||
route: "/dashboard/navgan-loan-management",
|
||||
icon: <PaidIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <PaidIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_navgan_loan"],
|
||||
},
|
||||
], [
|
||||
],
|
||||
[
|
||||
{
|
||||
key: "sidebar.province-head-expert",
|
||||
secondary: "secondary.refahi-province-manager",
|
||||
name: "province_head_expert",
|
||||
type: "page",
|
||||
route: "/dashboard/province-head-expert",
|
||||
icon: <GavelIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <GavelIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_province_headquarter_refahi"],
|
||||
},
|
||||
@@ -135,7 +137,7 @@ const sidebarMenu = [
|
||||
name: "inspector_expert",
|
||||
type: "page",
|
||||
route: "/dashboard/inspector-expert",
|
||||
icon: <GradingIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <GradingIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_inspector_refahi"],
|
||||
},
|
||||
@@ -145,7 +147,7 @@ const sidebarMenu = [
|
||||
name: "commercial_chief",
|
||||
type: "page",
|
||||
route: "/dashboard/commercial-chief",
|
||||
icon: <BusinessCenterIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <BusinessCenterIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_commercial_refahi"],
|
||||
},
|
||||
@@ -155,7 +157,7 @@ const sidebarMenu = [
|
||||
name: "development_assistant",
|
||||
type: "page",
|
||||
route: "/dashboard/development-assistant",
|
||||
icon: <Diversity3Icon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <Diversity3Icon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_development_refahi"],
|
||||
},
|
||||
@@ -165,7 +167,7 @@ const sidebarMenu = [
|
||||
name: "province_manager_refahi",
|
||||
type: "page",
|
||||
route: "/dashboard/refahi-province-manager",
|
||||
icon: <SupervisedUserCircleIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <SupervisedUserCircleIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_province_affairs_refahi"],
|
||||
},
|
||||
@@ -175,18 +177,19 @@ const sidebarMenu = [
|
||||
name: "refahi_loan_management",
|
||||
type: "page",
|
||||
route: "/dashboard/refahi-loan-management",
|
||||
icon: <PaidIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <PaidIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_refahi_loan"],
|
||||
},
|
||||
], [
|
||||
],
|
||||
[
|
||||
{
|
||||
key: "sidebar.expert-management",
|
||||
secondary: "secondary.admin-management",
|
||||
name: "expert_management",
|
||||
type: "page",
|
||||
route: "/dashboard/expert-management",
|
||||
icon: <ManageAccountsIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <ManageAccountsIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_experts"],
|
||||
},
|
||||
@@ -196,7 +199,7 @@ const sidebarMenu = [
|
||||
name: "user_management",
|
||||
type: "page",
|
||||
route: "/dashboard/user-management",
|
||||
icon: <PersonIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <PersonIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_users"],
|
||||
},
|
||||
@@ -206,7 +209,7 @@ const sidebarMenu = [
|
||||
name: "role_management",
|
||||
type: "page",
|
||||
route: "/dashboard/role-management",
|
||||
icon: <AccessibilityIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <AccessibilityIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["manage_roles"],
|
||||
},
|
||||
@@ -216,10 +219,10 @@ const sidebarMenu = [
|
||||
name: "admin_setting",
|
||||
type: "page",
|
||||
route: "/dashboard/admin-setting",
|
||||
icon: <SettingsIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
icon: <SettingsIcon sx={{ width: "inherit", height: "inherit" }} />,
|
||||
selected: false,
|
||||
permissions: ["view_settings"],
|
||||
}
|
||||
},
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user