Skip to content

Commit

Permalink
Update search.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
gatshaayanda authored Oct 16, 2024
1 parent c906072 commit c2d4a1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/ui/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export default function Search({ placeholder }: { placeholder: string }) {
const searchParams = useSearchParams();
const pathname = usePathname();
const { replace } = useRouter();

function handleSearch(term: string) {
console.log(`Searching... ${term}`);
const params = new URLSearchParams(searchParams);
if (term) {
params.set('query', term);
Expand Down

0 comments on commit c2d4a1f

Please sign in to comment.