aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/ChangeServer.tsx
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-11-02 06:31:36 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-02 01:01:36 +0000
commit302d595f7c289387e53a0ef7df4d574ed4e25d70 (patch)
tree2385e59eaca9c78921d9b0b3681cfba1b3eef168 /src/components/auth/ChangeServer.tsx
parentRe-enable editing of the address bar to manually access a different url withi... (diff)
downloadferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.gz
ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.zst
ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.zip
Transform to TS and refactored components w.r.t deletion if duplicated Input component (#729)
Diffstat (limited to 'src/components/auth/ChangeServer.tsx')
-rw-r--r--src/components/auth/ChangeServer.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/auth/ChangeServer.tsx b/src/components/auth/ChangeServer.tsx
index d8509f599..c49e52673 100644
--- a/src/components/auth/ChangeServer.tsx
+++ b/src/components/auth/ChangeServer.tsx
@@ -4,7 +4,7 @@ import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl';
4import { mdiArrowLeftCircle } from '@mdi/js'; 4import { mdiArrowLeftCircle } from '@mdi/js';
5import { noop } from 'lodash'; 5import { noop } from 'lodash';
6import Form from '../../lib/Form'; 6import Form from '../../lib/Form';
7import Input from '../ui/Input'; 7import Input from '../ui/input/index';
8import Select from '../ui/Select'; 8import Select from '../ui/Select';
9import Button from '../ui/button'; 9import Button from '../ui/button';
10import Link from '../ui/Link'; 10import Link from '../ui/Link';
@@ -128,7 +128,10 @@ class ChangeServer extends Component<IProps> {
128 )} 128 )}
129 <Select field={form.$('server')} /> 129 <Select field={form.$('server')} />
130 {!this.defaultServers.includes(form.$('server').value) && ( 130 {!this.defaultServers.includes(form.$('server').value) && (
131 <Input placeholder="Custom Server" field={form.$('customServer')} /> 131 <Input
132 placeholder="Custom Server"
133 {...form.$('customServer').bind()}
134 />
132 )} 135 )}
133 <Button 136 <Button
134 type="submit" 137 type="submit"