diff options
author | 2022-11-02 06:31:36 +0530 | |
---|---|---|
committer | 2022-11-02 01:01:36 +0000 | |
commit | 302d595f7c289387e53a0ef7df4d574ed4e25d70 (patch) | |
tree | 2385e59eaca9c78921d9b0b3681cfba1b3eef168 /src/components/auth/ChangeServer.tsx | |
parent | Re-enable editing of the address bar to manually access a different url withi... (diff) | |
download | ferdium-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.tsx | 7 |
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'; | |||
4 | import { mdiArrowLeftCircle } from '@mdi/js'; | 4 | import { mdiArrowLeftCircle } from '@mdi/js'; |
5 | import { noop } from 'lodash'; | 5 | import { noop } from 'lodash'; |
6 | import Form from '../../lib/Form'; | 6 | import Form from '../../lib/Form'; |
7 | import Input from '../ui/Input'; | 7 | import Input from '../ui/input/index'; |
8 | import Select from '../ui/Select'; | 8 | import Select from '../ui/Select'; |
9 | import Button from '../ui/button'; | 9 | import Button from '../ui/button'; |
10 | import Link from '../ui/Link'; | 10 | import 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" |