fix: review comments

This commit is contained in:
Piyush Gupta
2025-11-21 00:20:47 +05:30
parent 4796bcd579
commit f379217604
3 changed files with 5 additions and 5 deletions
@@ -85,7 +85,7 @@ export const AddGroupProjectModal = ({ popUp, handlePopUpToggle }: Props) => {
}); });
createNotification({ createNotification({
text: `Successfully assigned project ${projectName} to the group`, text: `Successfully assigned the group to project ${projectName}`,
type: "success" type: "success"
}); });
}; };
@@ -31,7 +31,7 @@ export const GroupProjectsSection = ({ groupId, groupSlug }: Props) => {
}); });
createNotification({ createNotification({
text: `Successfully removed group from project ${projectName}`, text: `Successfully removed the group from project ${projectName}`,
type: "success" type: "success"
}); });
@@ -149,14 +149,14 @@ export const GroupProjectsTable = ({ groupId, groupSlug, handlePopUpOpen }: Prop
{isEmpty && ( {isEmpty && (
<EmptyState <EmptyState
title={ title={
groupMemberships?.projects.length debouncedSearch
? "No projects match this search..." ? "No projects match this search..."
: "This group is not a part of any projects yet" : "This group is not a part of any projects yet"
} }
icon={groupMemberships?.projects.length ? faSearch : faFolder} icon={debouncedSearch ? faSearch : faFolder}
/> />
)} )}
{!groupMemberships?.projects.length && ( {isEmpty && (
<OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}> <OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}>
{(isAllowed) => ( {(isAllowed) => (
<div className="mb-4 flex items-center justify-center"> <div className="mb-4 flex items-center justify-center">