chore: update to react query v5

This commit is contained in:
Stavros
2025-04-15 12:27:28 +03:00
parent b24aab17b1
commit 7413b3f931
11 changed files with 23 additions and 29 deletions

View File

@@ -10,11 +10,11 @@ type FormValues = z.infer<typeof schema>;
interface TotpFormProps {
onSubmit: (values: FormValues) => void;
isLoading: boolean;
isPending: boolean;
}
export const TotpForm = (props: TotpFormProps) => {
const { onSubmit, isLoading } = props;
const { onSubmit, isPending } = props;
const form = useForm({
mode: "uncontrolled",
@@ -32,7 +32,7 @@ export const TotpForm = (props: TotpFormProps) => {
placeholder=""
{...form.getInputProps("code")}
/>
<Button type="submit" mt="xl" loading={isLoading} fullWidth>
<Button type="submit" mt="xl" loading={isPending} fullWidth>
Verify
</Button>
</form>