Skip to content

chore(site): remove users and pagination services #9932

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 18 commits into from
Oct 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove comments
  • Loading branch information
BrunoQuaresma committed Oct 2, 2023
commit 23517e36a11a2683abffe5e7734bcb91992c82f2
10 changes: 5 additions & 5 deletions site/src/pages/UsersPage/UsersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,22 @@ export const UsersPage: FC<{ children?: ReactNode }> = () => {
const authMethodsQuery = useQuery(authMethods());
const isLoading =
usersQuery.isLoading || rolesQuery.isLoading || authMethodsQuery.isLoading;
// Suspend

const [confirmSuspendUser, setConfirmSuspendUser] = useState<User>();
const suspendUserMutation = useMutation(suspendUser(queryClient));
// Activate

const [confirmActivateUser, setConfirmActivateUser] = useState<User>();
const activateUserMutation = useMutation(activateUser(queryClient));
// Delete

const [confirmDeleteUser, setConfirmDeleteUser] = useState<User>();
const deleteUserMutation = useMutation(deleteUser(queryClient));
// Reset password

const [confirmResetPassword, setConfirmResetPassword] = useState<{
user: User;
newPassword: string;
}>();
const updatePasswordMutation = useMutation(updatePassword());
// Update roles

const updateRolesMutation = useMutation(updateRoles(queryClient));

return (
Expand Down