fixed problems and add AlertBox

This commit is contained in:
2025-09-17 19:42:13 -06:00
parent 7040865452
commit 10adca26af
14 changed files with 134 additions and 85 deletions
+8 -2
View File
@@ -2,14 +2,20 @@
import { useRouter } from "next/navigation";
import { useState } from "react";
function SearchUser() {
interface urlProp{
urlBase:string
}
function SearchUser(url:urlProp) {
const [numAccount, setNumAccount] = useState("");
const router = useRouter();
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
if (numAccount) {
router.push(`/Impresiones?numAccount=${numAccount}`);
router.push(`/${url.urlBase}?numAccount=${numAccount}`);
}
};