diff --git a/src/containers/Tenant/GrantAccess/GrantAccess.tsx b/src/containers/Tenant/GrantAccess/GrantAccess.tsx index 09a0e47769..a664787395 100644 --- a/src/containers/Tenant/GrantAccess/GrantAccess.tsx +++ b/src/containers/Tenant/GrantAccess/GrantAccess.tsx @@ -134,6 +134,8 @@ export function GrantAccess({handleCloseDrawer}: GrantAccessProps) { [setExplicitRightsChanges], ); + const rightsLoading = aclIsFetching || availableRightsAreFetching; + const renderSubject = () => { if (aclSubject) { return ; @@ -144,23 +146,23 @@ export function GrantAccess({handleCloseDrawer}: GrantAccessProps) { const subjectSelected = Boolean(aclSubject || newSubjects.length > 0); return ( - -
- - - {renderSubject()} - {/* wrapper to prevent radio button stretch */} - {subjectSelected && ( - - )} - + + + + {renderSubject()} + {/* wrapper to prevent radio button stretch */} {subjectSelected && ( -
+ + )} + + {subjectSelected && ( + + -
- )} -
- - {subjectSelected && ( -
+ + )} -
-
+ + + {subjectSelected && ( +