MSP-3105 change layout.type.ts and roles.type.ts

This commit is contained in:
Anastasiia committed 2024-04-19 14:20:50 +03:00
1 parent a380067908
commit 42ee1697c4
8 files changed
+34 -39

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ import routeApi from '@services/routeService.ts'
import { routePaths } from '@routes/routePaths.ts'
import { AccessListMethodType, EndpointType } from '@type/accessList.type.ts'
import { PermissionKeys } from '@type/roles.type.ts'
import { PermissionKeysType } from '@type/roles.type.ts'
import './app-access-content.scss'
@@ -32,7 +32,7 @@ const AppAccessContent: FC<AppAccessContentPropsType> = ({
const [messageApi, contextHolder] = message.useMessage()
const { hasPermission } = useRole()
const canWrite = hasPermission(PermissionKeys.write)
const canWrite = hasPermission(PermissionKeysType.write)
const {
data: methods = [],