♻️ Re-implement changes

This commit is contained in:
ajnart
2022-06-20 10:17:49 +02:00
parent 80d3f16473
commit 7780ae3d7a

View File

@@ -321,8 +321,19 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
/>
</>
)}
{(form.values.type === 'Deluge' || form.values.type === 'Transmission') && (
{(form.values.type === 'Deluge' ||
form.values.type === 'Transmission' ||
form.values.type === 'qBittorrent') && (
<>
<TextInput
label="Username"
placeholder="admin"
value={form.values.username}
onChange={(event) => {
form.setFieldValue('username', event.currentTarget.value);
}}
error={form.errors.username && 'Invalid username'}
/>
<TextInput
label="Password"
placeholder="password"