mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 21:03:19 +03:00
refactor the Form Input field name from adminPassword to InputFieldPassword
This commit is contained in:
parent
170f367538
commit
3711588909
1 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ export const TextField: FC<TextFieldProps> = ({
|
|||
};
|
||||
|
||||
useEffect(() => {
|
||||
form.setFieldsValue({ adminPassword: value });
|
||||
form.setFieldsValue({ inputFieldPassword: value });
|
||||
}, [value]);
|
||||
|
||||
// if you blur a required field with an empty value, restore its original value in state (parent's state), if an onChange from parent is available.
|
||||
|
@ -172,11 +172,11 @@ export const TextField: FC<TextFieldProps> = ({
|
|||
<Form
|
||||
name="basic"
|
||||
form={form}
|
||||
initialValues={{ adminPassword: value }}
|
||||
initialValues={{ inputFieldPassword: value }}
|
||||
style={{ width: '100%' }}
|
||||
>
|
||||
<Form.Item
|
||||
name="adminPassword"
|
||||
name="inputFieldPassword"
|
||||
rules={[
|
||||
{ min: 8, message: '- minimum 8 characters' },
|
||||
{ max: 192, message: '- maximum 192 characters' },
|
||||
|
|
Loading…
Reference in a new issue