changed the variant of the circular progress to show progress of the update rather than the looping animation

This commit is contained in:
csawatzky 2025-06-11 14:34:52 -06:00
parent 7ef12f1078
commit 769c35f0f7

View file

@ -118,7 +118,9 @@ export default function UpgradeDevice(props: Props) {
}; };
const percent = () => { const percent = () => {
return Math.round((upgrade.status.offset / upgrade.status.size) * 100); let progress = Math.round((upgrade.status.offset / upgrade.status.size) * 100)
console.log(progress)
return progress;
}; };
const tooltip = () => { const tooltip = () => {
@ -243,7 +245,7 @@ export default function UpgradeDevice(props: Props) {
<UpdateIcon /> <UpdateIcon />
{upgrading() && ( {upgrading() && (
<CircularProgress <CircularProgress
// variant="static" variant="determinate"
value={percent()} value={percent()}
size={"2rem"} size={"2rem"}
className={classes.buttonProgress} className={classes.buttonProgress}