From 911479baff5da2d0ab9fc9cc087f28788c6cb0b3 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 23 Oct 2024 23:59:06 +0530 Subject: [PATCH] feat: added banner in permission custom role page. --- .../RolePermissionsSection/RolePermissionsSection.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Project/RolePage/components/RolePermissionsSection/RolePermissionsSection.tsx b/frontend/src/views/Project/RolePage/components/RolePermissionsSection/RolePermissionsSection.tsx index 1e7fbfdb8..48746bbfc 100644 --- a/frontend/src/views/Project/RolePage/components/RolePermissionsSection/RolePermissionsSection.tsx +++ b/frontend/src/views/Project/RolePage/components/RolePermissionsSection/RolePermissionsSection.tsx @@ -5,7 +5,7 @@ import { zodResolver } from "@hookform/resolvers/zod"; import { twMerge } from "tailwind-merge"; import { createNotification } from "@app/components/notifications"; -import { Button, Modal, ModalContent, ModalTrigger } from "@app/components/v2"; +import { Alert, Button, Modal, ModalContent, ModalTrigger } from "@app/components/v2"; import { ProjectPermissionSub, useWorkspace } from "@app/context"; import { usePopUp } from "@app/hooks"; import { useGetProjectRoleBySlug, useUpdateProjectRole } from "@app/hooks/api"; @@ -142,6 +142,10 @@ export const RolePermissionsSection = ({ roleSlug, isDisabled }: Props) => { )} +
{!isLoading && } {(Object.keys(PROJECT_PERMISSION_OBJECT) as ProjectPermissionSub[]).map((subject) => (