diff --git a/components/checkbox/Checkbox.tsx b/components/checkbox/Checkbox.tsx index 7742b4158a..459f38b75d 100644 --- a/components/checkbox/Checkbox.tsx +++ b/components/checkbox/Checkbox.tsx @@ -1,4 +1,5 @@ import classNames from 'classnames'; +import type { CheckboxRef } from 'rc-checkbox'; import RcCheckbox from 'rc-checkbox'; import * as React from 'react'; import { ConfigContext } from '../config-provider'; @@ -48,7 +49,7 @@ export interface CheckboxProps extends AbstractCheckboxProps = ( +const InternalCheckbox: React.ForwardRefRenderFunction = ( { prefixCls: customizePrefixCls, className, diff --git a/components/checkbox/__tests__/__snapshots__/checkbox.test.tsx.snap b/components/checkbox/__tests__/__snapshots__/checkbox.test.tsx.snap index 178dd7bc05..ae18e74176 100644 --- a/components/checkbox/__tests__/__snapshots__/checkbox.test.tsx.snap +++ b/components/checkbox/__tests__/__snapshots__/checkbox.test.tsx.snap @@ -10,7 +10,6 @@ exports[`Checkbox rtl render component should be rendered correctly in RTL direc diff --git a/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap b/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap index 4f46b16164..cc91ae49cb 100644 --- a/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap +++ b/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap @@ -12035,7 +12035,6 @@ exports[`ConfigProvider components Checkbox configProvider 1`] = ` = (props, ref) => { +const InternalRadio: React.ForwardRefRenderFunction = (props, ref) => { const groupContext = React.useContext(RadioGroupContext); const radioOptionTypeContext = React.useContext(RadioOptionTypeContext); const { getPrefixCls, direction } = React.useContext(ConfigContext); - const innerRef = React.useRef(); + const innerRef = React.useRef(null); const mergedRef = composeRef(ref, innerRef); const { isFormItemInput } = React.useContext(FormItemInputContext); diff --git a/components/table/__tests__/__snapshots__/Table.filter.test.tsx.snap b/components/table/__tests__/__snapshots__/Table.filter.test.tsx.snap index 69cd5c4b30..798ddcc715 100644 --- a/components/table/__tests__/__snapshots__/Table.filter.test.tsx.snap +++ b/components/table/__tests__/__snapshots__/Table.filter.test.tsx.snap @@ -579,7 +579,6 @@ exports[`Table.filter renders menu correctly 1`] = `