diff options
author | muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> | 2022-11-02 06:31:36 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 01:01:36 +0000 |
commit | 302d595f7c289387e53a0ef7df4d574ed4e25d70 (patch) | |
tree | 2385e59eaca9c78921d9b0b3681cfba1b3eef168 /src/components/auth/Login.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/Login.tsx')
-rw-r--r-- | src/components/auth/Login.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/auth/Login.tsx b/src/components/auth/Login.tsx index 66a567fe4..185a6ad48 100644 --- a/src/components/auth/Login.tsx +++ b/src/components/auth/Login.tsx | |||
@@ -9,7 +9,7 @@ import { API_VERSION } from '../../environment-remote'; | |||
9 | import { serverBase } from '../../api/apiBase'; // TODO: Remove this line after fixing password recovery in-app | 9 | import { serverBase } from '../../api/apiBase'; // TODO: Remove this line after fixing password recovery in-app |
10 | import Form from '../../lib/Form'; | 10 | import Form from '../../lib/Form'; |
11 | import { required, email } from '../../helpers/validation-helpers'; | 11 | import { required, email } from '../../helpers/validation-helpers'; |
12 | import Input from '../ui/Input'; | 12 | import Input from '../ui/input/index'; |
13 | import Button from '../ui/button'; | 13 | import Button from '../ui/button'; |
14 | import Link from '../ui/Link'; | 14 | import Link from '../ui/Link'; |
15 | import { H1 } from '../ui/headline'; | 15 | import { H1 } from '../ui/headline'; |
@@ -136,8 +136,8 @@ class Login extends Component<IProps> { | |||
136 | {intl.formatMessage(messages.serverLogout)} | 136 | {intl.formatMessage(messages.serverLogout)} |
137 | </p> | 137 | </p> |
138 | )} | 138 | )} |
139 | <Input field={form.$('email')} focus /> | 139 | <Input {...form.$('email').bind()} focus /> |
140 | <Input field={form.$('password')} showPasswordToggle /> | 140 | <Input {...form.$('password').bind()} showPasswordToggle /> |
141 | {error.code === 'invalid-credentials' && ( | 141 | {error.code === 'invalid-credentials' && ( |
142 | <> | 142 | <> |
143 | <p className="error-message center"> | 143 | <p className="error-message center"> |