Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Swap progress bar

Manav Rathi9e41b906a7ef
diff --git a/web/apps/photos/src/components/FixCreationTime/running.tsx b/web/apps/photos/src/components/FixCreationTime/running.tsx
index dbceb6c127..6a743b101a 100644
--- a/web/apps/photos/src/components/FixCreationTime/running.tsx
+++ b/web/apps/photos/src/components/FixCreationTime/running.tsx
@@ -1,8 +1,11 @@
+import { LinearProgress } from "@mui/material";
import { ComfySpan } from "components/ExportInProgress";
import { t } from "i18next";
-import { ProgressBar } from "react-bootstrap";
export default function FixCreationTimeRunning({ progressTracker }) {
+ const progress = Math.round(
+ (progressTracker.current * 100) / progressTracker.total,
+ );
return (
<>
<div style={{ marginBottom: "10px" }}>
@@ -22,13 +25,7 @@ export default function FixCreationTimeRunning({ progressTracker }) {
marginBottom: "20px",
}}
>
- <ProgressBar
- now={Math.round(
- (progressTracker.current * 100) / progressTracker.total,
- )}
- animated={true}
- variant="upload-progress-bar"
- />
+ <LinearProgress variant="determinate" value={progress} />
</div>
</>
);