Skip to content

Commit

Permalink
Added State to Email and Password
Browse files Browse the repository at this point in the history
  • Loading branch information
akaneshiro7 committed Nov 30, 2023
1 parent 8a49bcb commit e1f40d2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/CreateAccount.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React from "react";
import {useState} from "react";

function FinancialLiteracyForm(props: any) {
const [email, setEmail] = useState("")
const [password, setPassword] = useState("")


return (
<section className="bg-white h-screen w-screen">
<header className="flex">
<div className="grow flex flex-col items-stretch">
<div className="flex flex-col items-stretch max-md:max-w-full">
<div className="bg-neutral-100 flex w-full items-center justify-between py-8 px-10">
<div className="bg-neutral-100 flex w-full items-center justify-between py-8 p-10">
<div className="flex justify-between items-center gap-4">
<div className="flex w-14 shrink-0 h-14 flex-col rounded-[50%] bg-neutral-400" />
<div className="text-black text-2xl font-extrabold">
Expand Down Expand Up @@ -49,6 +53,8 @@ function FinancialLiteracyForm(props: any) {
name="email"
placeholder="Email"
className="w-full"
value={email}
onChange={(e) => setEmail(e.target.value)}
/>
</div>
</div>
Expand All @@ -66,6 +72,8 @@ function FinancialLiteracyForm(props: any) {
name="password"
placeholder="Password"
className="w-full"
value={password}
onChange={(e) => setPassword(e.target.value)}
/>
</div>
<img
Expand Down

0 comments on commit e1f40d2

Please sign in to comment.