diff --git a/Client/src/Pages/Login/index.jsx b/Client/src/Pages/Login/index.jsx index 4a621e889..19edcf6f0 100644 --- a/Client/src/Pages/Login/index.jsx +++ b/Client/src/Pages/Login/index.jsx @@ -1,4 +1,4 @@ -import React from "react"; +import { useState } from "react"; import "./index.css"; import BackgroundPattern from "../../Components/BackgroundPattern/BackgroundPattern"; import Logomark from "../../assets/Images/Logomark.png"; @@ -9,6 +9,24 @@ import Google from "../../assets/Images/Google.png"; import PasswordTextField from "../../Components/TextFields/Password/PasswordTextField"; const Login = () => { + const idMap = { + "login-email-input": "email", + "login-password-input": "password", + }; + + const [form, setForm] = useState({ + email: "", + password: "", + }); + + const handleInput = (e) => { + const fieldName = idMap[e.target.id]; + setForm({ + ...form, + [fieldName]: e.target.value, + }); + }; + return (
@@ -25,15 +43,17 @@ const Login = () => {