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

@@ -32,17 +32,19 @@ function RouteComponent() {
</div>
<div className="space-y-6 w-[300px]">
<Input
label="Username"
placeholder="Pink Axolotl"
value={username}
onChange={(e) => setUsername(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") {
handleSubmit();
}
<form
onSubmit={(e) => {
e.preventDefault();
handleSubmit();
}}
/>
>
<Input
label="Username"
placeholder="Pink Axolotl"
value={username}
onChange={(e) => setUsername(e.target.value)}
/>
</form>
<div className="space-y-2">
<Button
@@ -55,7 +57,9 @@ function RouteComponent() {
<Button
variant={"secondary"}
className="text-[18px] w-full"
// onClick={handleSubmit}
onClick={() => {
navigate({ to: "/", viewTransition: { types: ["warp"] } });
}}
>
Skip for now
</Button>