From 478f611a1626bc1da3c80f8c99fde904e963d045 Mon Sep 17 00:00:00 2001 From: wf-erikslokharts <74410386+wf-erikslokharts@users.noreply.github.com> Date: Fri, 13 Nov 2020 16:13:48 +0000 Subject: [PATCH] chore: refactor LoadingIcon.tsx (#27765) --- components/button/LoadingIcon.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/button/LoadingIcon.tsx b/components/button/LoadingIcon.tsx index 12f097c117..c50b6bf411 100644 --- a/components/button/LoadingIcon.tsx +++ b/components/button/LoadingIcon.tsx @@ -16,7 +16,7 @@ const getRealWidth = (node: HTMLElement) => ({ transform: 'scale(1)', }); -export default function LoadingIcon({ prefixCls, loading, existIcon }: LoadingIconProps) { +const LoadingIcon: React.FC = ({ prefixCls, loading, existIcon }) => { const visible = !!loading; if (existIcon) { @@ -50,3 +50,5 @@ export default function LoadingIcon({ prefixCls, loading, existIcon }: LoadingIc ); } + +export default LoadingIcon;