mirror of
https://github.com/DevVoxel/VectorDNS.git
synced 2026-02-27 05:47:38 +00:00
Fix deprecated FormEvent type and normalize code formatting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user