From 390ca429d9336884b6e751ba8badfd19a3eb071d Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 23 Jan 2026 18:47:14 +0100 Subject: [PATCH] fix: update PasswordInput onChange handlers to accept event --- app/sites/[id]/settings/page.tsx | 2 +- components/settings/ProfileSettings.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index c2565d9..c4b2d7b 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -524,7 +524,7 @@ export default function SiteSettingsPage() { setFormData({ ...formData, password: value })} + onChange={(e) => setFormData({ ...formData, password: e.target.value })} placeholder={site.has_password ? "Change password (leave empty to keep current)" : "Set a password"} />

diff --git a/components/settings/ProfileSettings.tsx b/components/settings/ProfileSettings.tsx index e7868b9..c4a06a9 100644 --- a/components/settings/ProfileSettings.tsx +++ b/components/settings/ProfileSettings.tsx @@ -626,20 +626,20 @@ export default function ProfileSettings() { setCurrentPassword(e.target.value)} required />


setNewPassword(e.target.value)} required /> setConfirmPassword(e.target.value)} required /> @@ -771,7 +771,7 @@ export default function ProfileSettings() { setEmailConfirmPassword(e.target.value)} required className="mb-2" /> @@ -845,7 +845,7 @@ export default function ProfileSettings() { setDeletePassword(e.target.value)} required className="mb-2" />