mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 02:56:22 +00:00
feat: 在重置密码页面添加登录和注册链接;更新中文翻译以支持“注册”文本
This commit is contained in:
@ -16,8 +16,9 @@ import { useTranslations } from "next-intl"
|
||||
import { toast } from "sonner"
|
||||
import { InputOTPControlled } from "@/components/common/input-otp"
|
||||
import { BaseErrorResponse } from "@/models/resp"
|
||||
import { loginPath } from "@/hooks/use-route"
|
||||
import { loginPath, registerPath } from "@/hooks/use-route"
|
||||
import router from "next/router"
|
||||
import Link from "next/link"
|
||||
|
||||
export function ResetPasswordForm({
|
||||
className,
|
||||
@ -108,8 +109,16 @@ export function ResetPasswordForm({
|
||||
>
|
||||
{t("title")}
|
||||
</Button>
|
||||
<div className="text-center text-sm">
|
||||
<Link href={loginPath} className="underline underline-offset-4">
|
||||
{commonT("login")}
|
||||
</Link>
|
||||
{" "}
|
||||
<Link href={registerPath} className="underline underline-offset-4">
|
||||
{commonT("register")}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* TODO 回归登录和注册链接 */}
|
||||
</div>
|
||||
</form>
|
||||
|
@ -64,6 +64,7 @@
|
||||
"minutesAgo": "分钟前",
|
||||
"obtain": "获取",
|
||||
"password": "密码",
|
||||
"register": "注册",
|
||||
"secondsAgo": "秒前",
|
||||
"send_verify_code": "发送验证码",
|
||||
"submit": "提交",
|
||||
|
Reference in New Issue
Block a user