diff --git a/src/components/ui/LoadingBar.tsx b/src/components/ui/LoadingBar.tsx
index f0ba563f16..000f829d4b 100644
--- a/src/components/ui/LoadingBar.tsx
+++ b/src/components/ui/LoadingBar.tsx
@@ -2,13 +2,7 @@ import { Transition } from "@headlessui/react";
import { twMerge } from "tailwind-merge";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import {
- faCheck,
- faArrowRotateLeft,
- faStop,
-} from "@fortawesome/pro-thin-svg-icons";
-
-import { Spinner } from "./Spinner";
+import { faArrowRotateLeft } from "@fortawesome/pro-thin-svg-icons";
export enum LoadingBarStatus {
IDLE = "idle",
@@ -16,7 +10,8 @@ export enum LoadingBarStatus {
SUCCESS = "success",
ERROR = "error",
}
-export type LoadingBarProps = {
+export interface LoadingBarProps {
+ width?: number;
progress: number;
status: LoadingBarStatus;
isShowing: boolean;
@@ -26,9 +21,10 @@ export type LoadingBarProps = {
};
message?: string;
onRetry?: () => void;
-};
+}
export const LoadingBar = ({
+ width,
progress = 0,
position,
status,
@@ -41,9 +37,10 @@ export const LoadingBar = ({
-
-
- {message && (
-
- )}
+
-
- {status === LoadingBarStatus.IDLE && (
-
- )}
- {status === LoadingBarStatus.LOADING && (
-
- )}
- {status === LoadingBarStatus.SUCCESS && (
-
- )}
+
+
+ {message &&
}
+
{status === LoadingBarStatus.ERROR && (
-