mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 02:56:22 +00:00
feat: 更新重置密码表单组件,使用新的路由钩子以提升导航功能
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 14s
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 14s
This commit is contained in:
@ -17,7 +17,7 @@ import { toast } from "sonner"
|
|||||||
import { InputOTPControlled } from "@/components/common/input-otp"
|
import { InputOTPControlled } from "@/components/common/input-otp"
|
||||||
import { BaseErrorResponse } from "@/models/resp"
|
import { BaseErrorResponse } from "@/models/resp"
|
||||||
import { loginPath, registerPath } from "@/hooks/use-route"
|
import { loginPath, registerPath } from "@/hooks/use-route"
|
||||||
import router from "next/router"
|
import {useRouter} from "next/navigation"
|
||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
|
|
||||||
export function ResetPasswordForm({
|
export function ResetPasswordForm({
|
||||||
@ -26,6 +26,7 @@ export function ResetPasswordForm({
|
|||||||
}: React.ComponentProps<"div">) {
|
}: React.ComponentProps<"div">) {
|
||||||
const t = useTranslations('ResetPassword')
|
const t = useTranslations('ResetPassword')
|
||||||
const commonT = useTranslations('Common')
|
const commonT = useTranslations('Common')
|
||||||
|
const router = useRouter()
|
||||||
const [email, setEmail] = useState("")
|
const [email, setEmail] = useState("")
|
||||||
const [verifyCode, setVerifyCode] = useState("")
|
const [verifyCode, setVerifyCode] = useState("")
|
||||||
const [newPassword, setNewPassword] = useState("")
|
const [newPassword, setNewPassword] = useState("")
|
||||||
|
Reference in New Issue
Block a user