소스 검색

delete comment
move attributes from outside to component direct

Tatsuya Ise 2 년 전
부모
커밋
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}
  */
-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} />
     );
   }