mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
Fix missing type (#624)
Co-authored-by: Artur Comunello <artur.comunello@corel.com>
This commit is contained in:
@@ -9,7 +9,7 @@ export default function Search({ placeholder }: { placeholder: string }) {
|
||||
const { replace } = useRouter();
|
||||
const pathname = usePathname();
|
||||
|
||||
const handleSearch = useDebouncedCallback((term) => {
|
||||
const handleSearch = useDebouncedCallback((term: string) => {
|
||||
console.log(`Searching... ${term}`);
|
||||
|
||||
const params = new URLSearchParams(searchParams);
|
||||
|
||||
Reference in New Issue
Block a user