From 302d595f7c289387e53a0ef7df4d574ed4e25d70 Mon Sep 17 00:00:00 2001
From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>
Date: Wed, 2 Nov 2022 06:31:36 +0530
Subject: Transform to TS and refactored components w.r.t deletion if
 duplicated Input component (#729)

---
 src/components/auth/Login.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/auth/Login.tsx')

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';
 import { serverBase } from '../../api/apiBase'; // TODO: Remove this line after fixing password recovery in-app
 import Form from '../../lib/Form';
 import { required, email } from '../../helpers/validation-helpers';
-import Input from '../ui/Input';
+import Input from '../ui/input/index';
 import Button from '../ui/button';
 import Link from '../ui/Link';
 import { H1 } from '../ui/headline';
@@ -136,8 +136,8 @@ class Login extends Component<IProps> {
               {intl.formatMessage(messages.serverLogout)}
             </p>
           )}
-          <Input field={form.$('email')} focus />
-          <Input field={form.$('password')} showPasswordToggle />
+          <Input {...form.$('email').bind()} focus />
+          <Input {...form.$('password').bind()} showPasswordToggle />
           {error.code === 'invalid-credentials' && (
             <>
               <p className="error-message center">
-- 
cgit v1.2.3-70-g09d2

