From a552a5eea58a3d5d506600a43f7ab973d9287a80 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Fri, 18 Nov 2022 22:20:18 +0800 Subject: [PATCH] type: fix type (#38697) --- components/float-button/FloatButtonGroup.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/float-button/FloatButtonGroup.tsx b/components/float-button/FloatButtonGroup.tsx index f018e6fd54..a023cc4893 100644 --- a/components/float-button/FloatButtonGroup.tsx +++ b/components/float-button/FloatButtonGroup.tsx @@ -11,7 +11,7 @@ import { FloatButtonGroupProvider } from './context'; import type { FloatButtonGroupProps } from './interface'; import useStyle from './style'; -const FloatButtonGroup: React.FC = props => { +const FloatButtonGroup: React.FC = (props) => { const { prefixCls: customizePrefixCls, className, @@ -41,14 +41,14 @@ const FloatButtonGroup: React.FC = props => { const [open, setOpen] = useMergedState(false, { value: props.open }); - const clickAction = useRef>({}); + const clickAction = useRef>({}); const hoverAction = useRef>({}); if (trigger === 'click') { clickAction.current = { onClick() { - setOpen(prevState => { + setOpen((prevState) => { onOpenChange?.(!prevState); return !prevState; });