diff --git a/apps/st/src/components/statistics/verification/detail/RegionalGrid.tsx b/apps/st/src/components/statistics/verification/detail/RegionalGrid.tsx index abfa0fdfb..db259df39 100644 --- a/apps/st/src/components/statistics/verification/detail/RegionalGrid.tsx +++ b/apps/st/src/components/statistics/verification/detail/RegionalGrid.tsx @@ -341,15 +341,7 @@ const RegionalGrid: React.FC = ({ onClick={handleDownload} disabled={!vrfcTrgtSn || isDownloading} > - {isDownloading ? ( -
-
- -
-
- ) : ( - "다운로드" - )} + 다운로드 diff --git a/apps/st/src/shared/ui/with-loading-button.tsx b/apps/st/src/shared/ui/with-loading-button.tsx new file mode 100644 index 000000000..384464954 --- /dev/null +++ b/apps/st/src/shared/ui/with-loading-button.tsx @@ -0,0 +1,32 @@ +import { + Button, + type ButtonProps, + LoadingWithAnimation, +} from "@common/components"; + +interface WithLoadingButtonProps extends ButtonProps { + isLoading: boolean; + children: React.ReactNode; +} + +function WithLoadingButton({ + isLoading, + children, + ...props +}: WithLoadingButtonProps) { + return ( + + ); +} + +export { WithLoadingButton };