From 40dd31baddf237e40d6cdcac1a9b5e4fdcb15ca7 Mon Sep 17 00:00:00 2001 From: lerte smith Date: Thu, 31 Oct 2024 18:11:39 +0800 Subject: [PATCH] fix build --- apps/docs/src/views/icon.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/docs/src/views/icon.tsx b/apps/docs/src/views/icon.tsx index a039398..de4b5a9 100644 --- a/apps/docs/src/views/icon.tsx +++ b/apps/docs/src/views/icon.tsx @@ -48,8 +48,7 @@ export default () => { setFilterIcons(icons) }, []) - const handleChange = (event: React.ChangeEvent) => { - const { value } = event.target + const handleChange = (value: string) => { const reg = new RegExp(value, 'i') startTransition(() => { setFilterIcons(icons.filter((icon) => reg.test(icon)))