Swap progress bar
This commit is contained in:
parent
0f2181c09b
commit
9e41b906a7
1 changed files with 5 additions and 8 deletions
|
@ -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>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue