update toaster LO; add forms where in necessary

This commit is contained in:
yzned
2025-07-20 12:38:04 +03:00
committed by yzned
parent ee83aefabc
commit 39b3a837df
10 changed files with 151 additions and 88 deletions

View File

@@ -29,17 +29,19 @@ function RouteComponent() {
</div>
<div className="space-y-6 w-[300px]">
<Input
label="Email"
placeholder="Email@example.com"
value={email}
onChange={(e) => setEmail(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") {
handleSubmit();
}
<form
onSubmit={(e) => {
e.preventDefault();
handleSubmit();
}}
/>
>
<Input
label="Email"
placeholder="Email@example.com"
value={email}
onChange={(e) => setEmail(e.target.value)}
/>
</form>
<Button
className="text-[18px] w-full"