|
|
|
@ -26,13 +26,8 @@ const AddMailServerForm: FC<AddMailServerFormProps> = (props) => { |
|
|
|
|
[mailServerUuid], |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const { |
|
|
|
|
disableAutocomplete, |
|
|
|
|
disabledSubmit, |
|
|
|
|
formik, |
|
|
|
|
formikErrors, |
|
|
|
|
handleChange, |
|
|
|
|
} = useFormikUtils<MailServerFormikValues>({ |
|
|
|
|
const { disabledSubmit, formik, formikErrors, handleChange } = |
|
|
|
|
useFormikUtils<MailServerFormikValues>({ |
|
|
|
|
initialValues: previousFormikValues ?? { |
|
|
|
|
[msUuid]: { |
|
|
|
|
address: '', |
|
|
|
@ -206,8 +201,8 @@ const AddMailServerForm: FC<AddMailServerFormProps> = (props) => { |
|
|
|
|
<UncontrolledInput |
|
|
|
|
input={ |
|
|
|
|
<OutlinedInputWithLabel |
|
|
|
|
disableAutofill |
|
|
|
|
id={usernameChain} |
|
|
|
|
inputProps={disableAutocomplete()} |
|
|
|
|
label="Server username" |
|
|
|
|
name={usernameChain} |
|
|
|
|
onChange={handleChange} |
|
|
|
@ -220,8 +215,8 @@ const AddMailServerForm: FC<AddMailServerFormProps> = (props) => { |
|
|
|
|
<UncontrolledInput |
|
|
|
|
input={ |
|
|
|
|
<OutlinedInputWithLabel |
|
|
|
|
disableAutofill |
|
|
|
|
id={passwordChain} |
|
|
|
|
inputProps={disableAutocomplete()} |
|
|
|
|
label="Server password" |
|
|
|
|
name={passwordChain} |
|
|
|
|
onChange={handleChange} |
|
|
|
@ -236,8 +231,8 @@ const AddMailServerForm: FC<AddMailServerFormProps> = (props) => { |
|
|
|
|
<UncontrolledInput |
|
|
|
|
input={ |
|
|
|
|
<OutlinedInputWithLabel |
|
|
|
|
disableAutofill |
|
|
|
|
id={confirmPasswordChain} |
|
|
|
|
inputProps={disableAutocomplete()} |
|
|
|
|
label="Confirm password" |
|
|
|
|
name={confirmPasswordChain} |
|
|
|
|
onChange={handleChange} |
|
|
|
|