Skip to content

Commit

Permalink
Add type
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Dec 26, 2023
1 parent 5f82c3c commit e501481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/_components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function SearchButton() {
const [value, setValue] = useState("");
const router = useRouter();

const handleKeyDown = (e) => {
const handleKeyDown = (e: React.KeyboardEvent) => {
if (e.key === "Enter") {
router.push(`/search?q=${value}`);
}
Expand Down

0 comments on commit e501481

Please sign in to comment.