chore: disable rules in oxlint (#9154)

This commit is contained in:
Brooooooklyn
2024-12-13 10:49:35 +00:00
parent 2452ccd1e5
commit ea746e3d77
53 changed files with 621 additions and 269 deletions
@@ -38,7 +38,11 @@ export function DataTableRowActions({ user }: DataTableRowActionsProps) {
const { resetPasswordLink, onResetPassword } = useResetUserPassword();
const openResetPasswordDialog = useCallback(() => {
onResetPassword(user.id, () => setResetPasswordDialogOpen(true));
onResetPassword(user.id, () => setResetPasswordDialogOpen(true)).catch(
e => {
console.error(e);
}
);
}, [onResetPassword, user.id]);
const handleCopy = useCallback(() => {
@@ -53,7 +53,7 @@ export const useCreateUser = () => {
toast.error('Failed to update account: ' + (e as Error).message);
}
},
[createAccount, revalidate]
[createAccount, revalidate, updateAccountFeatures]
);
return { creating: creating || !!error, create };
@@ -99,7 +99,7 @@ export const useUpdateUser = () => {
toast.error('Failed to update account: ' + (e as Error).message);
}
},
[revalidate, updateAccount]
[revalidate, updateAccount, updateAccountFeatures]
);
return { updating: updating || !!error, update };