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

View File

@@ -85,7 +85,7 @@ export const AddGroupProjectModal = ({ popUp, handlePopUpToggle }: Props) => {
});
createNotification({
text: `Successfully assigned project ${projectName} to the group`,
text: `Successfully assigned the group to project ${projectName}`,
type: "success"
});
};

View File

@@ -31,7 +31,7 @@ export const GroupProjectsSection = ({ groupId, groupSlug }: Props) => {
});
createNotification({
text: `Successfully removed group from project ${projectName}`,
text: `Successfully removed the group from project ${projectName}`,
type: "success"
});

View File

@@ -149,14 +149,14 @@ export const GroupProjectsTable = ({ groupId, groupSlug, handlePopUpOpen }: Prop
{isEmpty && (
<EmptyState
title={
groupMemberships?.projects.length
debouncedSearch
? "No projects match this search..."
: "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}>
{(isAllowed) => (
<div className="mb-4 flex items-center justify-center">