diff --git a/components/tour/index.tsx b/components/tour/index.tsx index 87af40ced01d..ce9a35acc291 100644 --- a/components/tour/index.tsx +++ b/components/tour/index.tsx @@ -8,9 +8,9 @@ import useStyle from './style'; import type { TourProps, TourStepProps } from './interface'; import PurePanel from './PurePanel'; -const Tour: React.ForwardRefRenderFunction & { - _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel; -} = (props) => { +const Tour: React.FC & { _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel } = ( + props, +) => { const { prefixCls: customizePrefixCls, steps,