Browse Source

delete comment
move attributes from outside to component direct

Tatsuya Ise 2 years ago
parent
commit
8d0b81ec82
1 changed files with 2 additions and 3 deletions
  1. 2 3
      apps/app/src/components/Admin/G2GDataTransferStatusIcon.tsx

+ 2 - 3
apps/app/src/components/Admin/G2GDataTransferStatusIcon.tsx

@@ -7,7 +7,7 @@ import { LoadingSpinner } from '../LoadingSpinner';
 /**
  * Props for {@link G2GDataTransferStatusIcon}
  */
-interface Props extends ComponentPropsWithoutRef<'i'>{
+interface Props extends ComponentPropsWithoutRef<'span'>{
   status: G2GProgressStatus;
 }
 
@@ -17,8 +17,7 @@ interface Props extends ComponentPropsWithoutRef<'i'>{
 const G2GDataTransferStatusIcon = ({ status, className, ...props }: Props): JSX.Element => {
   if (status === G2G_PROGRESS_STATUS.IN_PROGRESS) {
     return (
-      // TODO: Replace Loading Spinner "Pulse" icon
-      <span className={`${className}`} aria-label="in progress" {...props}><LoadingSpinner /></span>
+      <LoadingSpinner className={`${className}`} aria-label="in progress" {...props} />
     );
   }