From ceba7bc3bcf3417adfa300155396bb5b198547dd Mon Sep 17 00:00:00 2001 From: f0x Date: Wed, 4 Jan 2023 21:12:57 +0000 Subject: [PATCH] refactor password change form --- .../settings/components/form/inputs.jsx | 4 +- web/source/settings/lib/form/bool.jsx | 2 - web/source/settings/lib/form/text.jsx | 1 - web/source/settings/lib/query/lib.js | 14 ++++ .../settings/lib/query/user-settings.js | 16 +++-- web/source/settings/style.css | 7 +- web/source/settings/user/settings.js | 68 +++++++------------ 7 files changed, 55 insertions(+), 57 deletions(-) diff --git a/web/source/settings/components/form/inputs.jsx b/web/source/settings/components/form/inputs.jsx index 05057713..efe8f96b 100644 --- a/web/source/settings/components/form/inputs.jsx +++ b/web/source/settings/components/form/inputs.jsx @@ -93,14 +93,14 @@ function Checkbox({label, field, ...inputProps}) { } function Select({label, field, options, ...inputProps}) { - const {onChange, value} = field; + const {onChange, value, ref} = field; return (
-
- - setNewPassword(e.target.value)} /> -
-
- - setNewPasswordConfirm(e.target.value)} /> -
- - + + + + + ); } \ No newline at end of file