Skip to content

chore(site): refactor groups to use react-query #9701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 19, 2023
Prev Previous commit
Next Next commit
Fix verbiage
  • Loading branch information
BrunoQuaresma committed Sep 18, 2023
commit ac005c1d0ca455713329af53c0cd3adee93593ed
6 changes: 3 additions & 3 deletions site/src/pages/GroupsPage/GroupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const GroupPage: React.FC = () => {
const addMemberMutation = useMutation(addMember(queryClient));
const removeMemberMutation = useMutation(removeMember(queryClient));
const deleteGroupMutation = useMutation(deleteGroup(queryClient));
const [isDeletingGroup, setIsDeletinGroup] = useState(false);
const [isDeletingGroup, setIsDeletingGroup] = useState(false);
const isLoading = !groupData || !permissions;
const canUpdateGroup = permissions ? permissions.canUpdateGroup : false;

Expand Down Expand Up @@ -87,7 +87,7 @@ export const GroupPage: React.FC = () => {
<Button
disabled={groupData?.id === groupData?.organization_id}
onClick={() => {
setIsDeletinGroup(true);
setIsDeletingGroup(true);
}}
startIcon={<DeleteOutline />}
>
Expand Down Expand Up @@ -243,7 +243,7 @@ export const GroupPage: React.FC = () => {
}
}}
onCancel={() => {
setIsDeletinGroup(false);
setIsDeletingGroup(false);
}}
/>
)}
Expand Down