Просмотр исходного кода

delete comment
move attributes from outside to component direct

Tatsuya Ise 2 лет назад
Родитель
Сommit
8d0b81ec82
1 измененных файлов с 2 добавлено и 3 удалено
  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}
  * Props for {@link G2GDataTransferStatusIcon}
  */
  */
-interface Props extends ComponentPropsWithoutRef<'i'>{
+interface Props extends ComponentPropsWithoutRef<'span'>{
   status: G2GProgressStatus;
   status: G2GProgressStatus;
 }
 }
 
 
@@ -17,8 +17,7 @@ interface Props extends ComponentPropsWithoutRef<'i'>{
 const G2GDataTransferStatusIcon = ({ status, className, ...props }: Props): JSX.Element => {
 const G2GDataTransferStatusIcon = ({ status, className, ...props }: Props): JSX.Element => {
   if (status === G2G_PROGRESS_STATUS.IN_PROGRESS) {
   if (status === G2G_PROGRESS_STATUS.IN_PROGRESS) {
     return (
     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} />
     );
     );
   }
   }