|
@@ -2,10 +2,12 @@ import React, { type ComponentPropsWithoutRef } from 'react';
|
|
|
|
|
|
|
|
import { G2G_PROGRESS_STATUS, type G2GProgressStatus } from '~/interfaces/g2g-transfer';
|
|
import { G2G_PROGRESS_STATUS, type G2GProgressStatus } from '~/interfaces/g2g-transfer';
|
|
|
|
|
|
|
|
|
|
+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;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -15,7 +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 (
|
|
|
- <i className={`fa fa-spinner fa-pulse fa-fw ${className}`} aria-label="in progress" {...props} />
|
|
|
|
|
|
|
+ <LoadingSpinner className={`${className}`} aria-label="in progress" {...props} />
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|