Skip to content

Commit 8ee5ee4

Browse files
committed
Update imports
1 parent 81c5ae8 commit 8ee5ee4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/FieldCatalog.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { useEffect, useState, type ChangeEvent } from "react";
1+
import {
2+
useEffect,
3+
useState,
4+
type ChangeEvent,
5+
type KeyboardEvent,
6+
} from "react";
27
import FieldBadges from "./fields/FieldBadges";
38
import Markdown from "react-markdown";
49
import type { CollectionEntry } from "astro:content";
@@ -95,7 +100,7 @@ const FieldCatalog = ({ fields }: { fields: Fields }) => {
95100
placeholder="Search fields"
96101
value={filters.search}
97102
onChange={(e) => setFilters({ ...filters, search: e.target.value })}
98-
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
103+
onKeyDown={(e: KeyboardEvent<HTMLInputElement>) => {
99104
if (e.key === "Escape") {
100105
setFilters({ ...filters, search: "" });
101106
}

0 commit comments

Comments
 (0)