fix: update PasswordInput onChange handlers to accept event
This commit is contained in:
@@ -524,7 +524,7 @@ export default function SiteSettingsPage() {
|
|||||||
<PasswordInput
|
<PasswordInput
|
||||||
id="password"
|
id="password"
|
||||||
value={formData.password}
|
value={formData.password}
|
||||||
onChange={(value) => 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"}
|
placeholder={site.has_password ? "Change password (leave empty to keep current)" : "Set a password"}
|
||||||
/>
|
/>
|
||||||
<p className="mt-2 text-xs text-neutral-500">
|
<p className="mt-2 text-xs text-neutral-500">
|
||||||
|
|||||||
@@ -626,20 +626,20 @@ export default function ProfileSettings() {
|
|||||||
<PasswordInput
|
<PasswordInput
|
||||||
label="Current Password"
|
label="Current Password"
|
||||||
value={currentPassword}
|
value={currentPassword}
|
||||||
onChange={setCurrentPassword}
|
onChange={(e) => setCurrentPassword(e.target.value)}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<hr className="border-neutral-100 dark:border-neutral-800 my-4" />
|
<hr className="border-neutral-100 dark:border-neutral-800 my-4" />
|
||||||
<PasswordInput
|
<PasswordInput
|
||||||
label="New Password"
|
label="New Password"
|
||||||
value={newPassword}
|
value={newPassword}
|
||||||
onChange={setNewPassword}
|
onChange={(e) => setNewPassword(e.target.value)}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<PasswordInput
|
<PasswordInput
|
||||||
label="Confirm New Password"
|
label="Confirm New Password"
|
||||||
value={confirmPassword}
|
value={confirmPassword}
|
||||||
onChange={setConfirmPassword}
|
onChange={(e) => setConfirmPassword(e.target.value)}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -771,7 +771,7 @@ export default function ProfileSettings() {
|
|||||||
<PasswordInput
|
<PasswordInput
|
||||||
label="Password"
|
label="Password"
|
||||||
value={emailConfirmPassword}
|
value={emailConfirmPassword}
|
||||||
onChange={setEmailConfirmPassword}
|
onChange={(e) => setEmailConfirmPassword(e.target.value)}
|
||||||
required
|
required
|
||||||
className="mb-2"
|
className="mb-2"
|
||||||
/>
|
/>
|
||||||
@@ -845,7 +845,7 @@ export default function ProfileSettings() {
|
|||||||
<PasswordInput
|
<PasswordInput
|
||||||
label="Verify Password"
|
label="Verify Password"
|
||||||
value={deletePassword}
|
value={deletePassword}
|
||||||
onChange={setDeletePassword}
|
onChange={(e) => setDeletePassword(e.target.value)}
|
||||||
required
|
required
|
||||||
className="mb-2"
|
className="mb-2"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user