From f77e2881af6cdd7bcfe8617939583cb1405edbab Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Fri, 12 May 2023 22:48:22 +0800 Subject: [PATCH] type: type optimization (#42312) * fix CI * type: type optimization --- components/table/hooks/useFilter/FilterWrapper.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/table/hooks/useFilter/FilterWrapper.tsx b/components/table/hooks/useFilter/FilterWrapper.tsx index d92a1d9fdf..fd132f58d7 100644 --- a/components/table/hooks/useFilter/FilterWrapper.tsx +++ b/components/table/hooks/useFilter/FilterWrapper.tsx @@ -1,5 +1,5 @@ -import * as React from 'react'; import KeyCode from 'rc-util/lib/KeyCode'; +import * as React from 'react'; export interface FilterDropdownMenuWrapperProps { children?: React.ReactNode; @@ -13,7 +13,7 @@ const onKeyDown: React.KeyboardEventHandler = (event) => { } }; -const FilterDropdownMenuWrapper = (props: FilterDropdownMenuWrapperProps) => ( +const FilterDropdownMenuWrapper: React.FC = (props) => (
e.stopPropagation()} onKeyDown={onKeyDown}> {props.children}