chore(format): run prettier

This commit is contained in:
zetaloop
2026-02-25 05:37:27 +08:00
parent c301dbd3c2
commit 807c329e87
8 changed files with 210 additions and 157 deletions
+9 -2
View File
@@ -56,8 +56,15 @@ export default function LoginPage() {
</div>
<div className="space-y-2">
<Label htmlFor="password"></Label>
<Input id="password" type="password" placeholder="请输入密码" {...register("password")} />
{errors.password && <p className="text-xs text-destructive">{errors.password.message}</p>}
<Input
id="password"
type="password"
placeholder="请输入密码"
{...register("password")}
/>
{errors.password && (
<p className="text-xs text-destructive">{errors.password.message}</p>
)}
</div>
<Button type="submit" className="w-full" disabled={isSubmitting}>
{isSubmitting ? "登录中..." : "登录"}
+12 -3
View File
@@ -59,7 +59,9 @@ export default function RegisterPage() {
<div className="space-y-2">
<Label htmlFor="nickname"></Label>
<Input id="nickname" placeholder="请输入昵称" {...register("nickname")} />
{errors.nickname && <p className="text-xs text-destructive">{errors.nickname.message}</p>}
{errors.nickname && (
<p className="text-xs text-destructive">{errors.nickname.message}</p>
)}
</div>
<div className="space-y-2">
<Label htmlFor="phone"></Label>
@@ -68,8 +70,15 @@ export default function RegisterPage() {
</div>
<div className="space-y-2">
<Label htmlFor="password"></Label>
<Input id="password" type="password" placeholder="请输入密码" {...register("password")} />
{errors.password && <p className="text-xs text-destructive">{errors.password.message}</p>}
<Input
id="password"
type="password"
placeholder="请输入密码"
{...register("password")}
/>
{errors.password && (
<p className="text-xs text-destructive">{errors.password.message}</p>
)}
</div>
<div className="space-y-2">
<Label htmlFor="confirmPassword"></Label>