{
const statuses = useSelector(
@@ -25,9 +26,8 @@ const DictOrderStatuses = () => {
Статусы заказов
- {(userRoleCode === 'SUPER_ADMIN' || userRoleCode === 'ADMIN') && (
-
- )}
+ {(userRoleCode === UserRolesEnum.SUPER_ADMIN ||
+ userRoleCode === UserRolesEnum.ADMIN) && }
diff --git a/frontend/src/pages/administration/DictParts/DictParts.tsx b/frontend/src/pages/administration/DictParts/DictParts.tsx
index bc202e1..bdf049b 100644
--- a/frontend/src/pages/administration/DictParts/DictParts.tsx
+++ b/frontend/src/pages/administration/DictParts/DictParts.tsx
@@ -28,6 +28,7 @@ import { ADD_NOTIFY } from '../../../store/storeConstants/snackbarConstants';
import api from '../../../utils/axiosMiddleware';
import CreatePartModal from '../../../components/modals/CreatePartModal';
import { Stack } from '@mui/material';
+import { UserRolesEnum } from '../../../models/userModel';
const DictParts = () => {
const dispatch = useDispatch();
@@ -143,9 +144,8 @@ const DictParts = () => {
Запчасти
- {(userRoleCode === 'SUPER_ADMIN' || userRoleCode === 'ADMIN') && (
-
- )}
+ {(userRoleCode === UserRolesEnum.SUPER_ADMIN ||
+ userRoleCode === UserRolesEnum.ADMIN) && }
@@ -180,8 +180,8 @@ const DictParts = () => {
{formatDate(part.updatedDate || '', true)}