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 ? (