value = null

This commit is contained in:
2026-02-26 13:35:29 -06:00
parent c0cf9ecda0
commit f19b0d1e11
@@ -8,7 +8,7 @@ interface urlProp {
}
function SearchUser(props: urlProp) {
const [numAcount, setnumAcount] = useState("");
const [numAcount, setnumAcount] = useState<string>();
const router = useRouter();
const pathname = usePathname();
const searchParams = useSearchParams();
@@ -17,6 +17,10 @@ function SearchUser(props: urlProp) {
if (props.value) {
setnumAcount(props.value);
}
if(props.value===null){
setnumAcount("")
}
}, [props.value]);
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {