🔧 Use PasswordInput for credentials

This commit is contained in:
ajnart
2022-08-01 14:13:35 +02:00
parent f0d1c6daf9
commit e4f91a1c00

View File

@@ -8,6 +8,7 @@ import {
LoadingOverlay,
Modal,
MultiSelect,
PasswordInput,
Select,
Stack,
Switch,
@@ -289,7 +290,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
}}
error={form.errors.username && 'Invalid username'}
/>
<TextInput
<PasswordInput
required
label="Password"
placeholder="adminadmin"
@@ -303,7 +304,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
)}
{form.values.type === 'Deluge' && (
<>
<TextInput
<PasswordInput
label="Password"
placeholder="password"
value={form.values.password}
@@ -325,7 +326,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
}}
error={form.errors.username && 'Invalid username'}
/>
<TextInput
<PasswordInput
label="Password"
placeholder="adminadmin"
value={form.values.password}