update to react-router v7

This commit is contained in:
Amruth Pillai
2025-01-12 19:41:18 +01:00
parent db6e7a7480
commit 7fb0226ddc
45 changed files with 112 additions and 106 deletions

View File

@ -16,7 +16,7 @@ import {
import { useRef } from "react";
import { Helmet } from "react-helmet-async";
import { useForm } from "react-hook-form";
import { useNavigate } from "react-router-dom";
import { useNavigate } from "react-router";
import { z } from "zod";
import { useBackupOtp } from "@/client/services/auth";
@ -39,7 +39,7 @@ export const BackupOtpPage = () => {
try {
await backupOtp(data);
navigate("/dashboard");
void navigate("/dashboard");
} catch {
form.reset();
}
@ -92,7 +92,7 @@ export const BackupOtpPage = () => {
variant="link"
className="px-5"
onClick={() => {
navigate(-1);
void navigate(-1);
}}
>
<ArrowLeft size={14} className="mr-2" />