feat: generation of modules from the server, moved modules fields from the general tab
This commit is contained in:
21
src/modules/modules.tsx
Normal file
21
src/modules/modules.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { IconUser, IconBox, IconCubeSend, IconUsersGroup, IconUserCog } from "@tabler/icons-react"
|
||||
import ModulesType from "./types.tsx";
|
||||
import connectModules from "./connectModules.tsx";
|
||||
|
||||
export enum ModuleNames {
|
||||
CLIENTS = "clients",
|
||||
SERVICES_AND_PRODUCTS = "servicesAndProducts",
|
||||
SHIPMENT = "shipment",
|
||||
EMPLOYEES = "employees",
|
||||
MANAGERS = "managers"
|
||||
}
|
||||
|
||||
const modules: ModulesType = {
|
||||
[ModuleNames.CLIENTS]: { info: { label: "Клиенты", key: "clients", icon: <IconUser /> } },
|
||||
[ModuleNames.SERVICES_AND_PRODUCTS]: { info: { label: "Товары и услуги", key: "servicesAndProducts", icon: <IconBox /> } },
|
||||
[ModuleNames.SHIPMENT]: { info: { label: "Отгрузка", key: "shipment", icon: <IconCubeSend /> } },
|
||||
[ModuleNames.EMPLOYEES]: { info: { label: "Сотрудники", key: "employees", icon: <IconUsersGroup /> } },
|
||||
[ModuleNames.MANAGERS]: { info: { label: "Менеджер", key: "managers", icon: <IconUserCog /> } }
|
||||
};
|
||||
|
||||
export const MODULES = connectModules(modules);
|
||||
Reference in New Issue
Block a user