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; });