Fix deprecated FormEvent type and normalize code formatting

This commit is contained in:
Aiden Smith
2026-02-24 13:03:34 -05:00
parent 0c6ab72561
commit 9a80accaf9
9 changed files with 160 additions and 160 deletions

View File

@@ -1,6 +1,6 @@
"use client";
import { useState, type FormEvent } from "react";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { Search } from "lucide-react";
import { Button } from "@/components/ui/button";
@@ -10,7 +10,7 @@ export function DomainSearchForm() {
const [domain, setDomain] = useState("");
const router = useRouter();
function handleSubmit(e: FormEvent) {
function handleSubmit(e: React.SyntheticEvent<HTMLFormElement>) {
e.preventDefault();
const trimmed = domain.trim().toLowerCase();
if (!trimmed) return;