mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
chore: refactor LoadingIcon.tsx (#27765)
This commit is contained in:
parent
d1d215e222
commit
478f611a16
@ -16,7 +16,7 @@ const getRealWidth = (node: HTMLElement) => ({
|
||||
transform: 'scale(1)',
|
||||
});
|
||||
|
||||
export default function LoadingIcon({ prefixCls, loading, existIcon }: LoadingIconProps) {
|
||||
const LoadingIcon: React.FC<LoadingIconProps> = ({ prefixCls, loading, existIcon }) => {
|
||||
const visible = !!loading;
|
||||
|
||||
if (existIcon) {
|
||||
@ -50,3 +50,5 @@ export default function LoadingIcon({ prefixCls, loading, existIcon }: LoadingIc
|
||||
</CSSMotion>
|
||||
);
|
||||
}
|
||||
|
||||
export default LoadingIcon;
|
||||
|
Loading…
Reference in New Issue
Block a user