incognitolm commited on
Commit ·
e43d89d
1
Parent(s): 011aa08
Update contact.tsx
Browse files- src/routes/contact.tsx +2 -2
src/routes/contact.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import { createFileRoute } from "@tanstack/react-router";
|
| 2 |
-
import { useState } from "react";
|
| 3 |
import { Button } from "@/components/ui/button";
|
| 4 |
import { Card, CardContent } from "@/components/ui/card";
|
| 5 |
import { Input } from "@/components/ui/input";
|
|
@@ -158,7 +158,7 @@ function ContactPage() {
|
|
| 158 |
|
| 159 |
<form
|
| 160 |
className="mt-6 space-y-4"
|
| 161 |
-
onSubmit={(e) => {
|
| 162 |
e.preventDefault();
|
| 163 |
setSuccess(null);
|
| 164 |
const v = validate();
|
|
|
|
| 1 |
import { createFileRoute } from "@tanstack/react-router";
|
| 2 |
+
import { useState, type FormEvent } from "react";
|
| 3 |
import { Button } from "@/components/ui/button";
|
| 4 |
import { Card, CardContent } from "@/components/ui/card";
|
| 5 |
import { Input } from "@/components/ui/input";
|
|
|
|
| 158 |
|
| 159 |
<form
|
| 160 |
className="mt-6 space-y-4"
|
| 161 |
+
onSubmit={async (e: FormEvent<HTMLFormElement>) => {
|
| 162 |
e.preventDefault();
|
| 163 |
setSuccess(null);
|
| 164 |
const v = validate();
|