Browse Source

type: add React.ReactNode (#43351)

pull/43357/head
thinkasany 1 year ago
committed by GitHub
parent
commit
656ba8de1a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/notification/PurePanel.tsx

2
components/notification/PurePanel.tsx

@ -20,7 +20,7 @@ export const TypeIcon = {
loading: <LoadingOutlined />,
};
export function getCloseIcon(prefixCls: string, closeIcon?: React.ReactNode) {
export function getCloseIcon(prefixCls: string, closeIcon?: React.ReactNode): React.ReactNode {
return (
closeIcon || (
<span className={`${prefixCls}-close-x`}>

Loading…
Cancel
Save