From fd65507701b2fca41defcc36992675e369bba995 Mon Sep 17 00:00:00 2001 From: wangcch Date: Sat, 19 Nov 2022 00:29:55 +0800 Subject: [PATCH] refactor(types): rename and replace internal CompoundedComponent type --- components/alert/index.tsx | 12 ++++++------ components/anchor/index.tsx | 6 +++--- components/breadcrumb/Breadcrumb.tsx | 6 +++--- components/layout/index.tsx | 6 +++--- components/steps/index.tsx | 6 +++--- components/table/Table.tsx | 18 +++++++++--------- components/timeline/Timeline.tsx | 6 +++--- components/tree-select/index.tsx | 6 +++--- components/upload/index.tsx | 6 +++--- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/components/alert/index.tsx b/components/alert/index.tsx index 493ae0f7605d..308ef32709c3 100644 --- a/components/alert/index.tsx +++ b/components/alert/index.tsx @@ -61,7 +61,7 @@ interface IconNodeProps { description: AlertProps['description']; } -const IconNode: React.FC = props => { +const IconNode: React.FC = (props) => { const { icon, prefixCls, type } = props; const iconType = iconMapFilled[type!] || null; if (icon) { @@ -82,7 +82,7 @@ interface CloseIconProps { handleClose: AlertProps['onClose']; } -const CloseIcon: React.FC = props => { +const CloseIcon: React.FC = (props) => { const { isClosable, closeText, prefixCls, closeIcon, handleClose } = props; return isClosable ? (