个人中心修改密码 & 会员个人信息

This commit is contained in:
Eamon
2026-09-09 16:25:32 +08:00
parent 7f03dbfb56
commit 8d8c9deba7
4 changed files with 74 additions and 60 deletions

View File

@@ -59,22 +59,20 @@ export default function LoginPage() {
<Button
variant="ghost"
onClick={() => setTab("login")}
className={`flex-1 py-2 rounded-md transition-all ${
tab === "login"
className={`flex-1 py-2 rounded-md transition-all ${tab === "login"
? "bg-white shadow-sm text-blue-600 font-medium"
: "text-gray-600 hover:text-gray-900"
}`}
}`}
>
登录
</Button>
<Button
variant="ghost"
onClick={() => setTab("register")}
className={`flex-1 py-2 rounded-md transition-all ${
tab === "register"
className={`flex-1 py-2 rounded-md transition-all ${tab === "register"
? "bg-white shadow-sm text-blue-600 font-medium"
: "text-gray-600 hover:text-gray-900"
}`}
}`}
>
注册
</Button>
@@ -174,9 +172,9 @@ function LoginForm() {
tabIndex={-1}
>
{showPassword ? (
<EyeOffIcon className="size-4" />
) : (
<EyeIcon className="size-4" />
) : (
<EyeOffIcon className="size-4" />
)}
</button>
</div>