Add new progress bar to sleeve UI

This commit is contained in:
nickofolas 2022-05-02 17:48:49 -05:00
parent e859759ebd
commit 57673ae281

@ -176,11 +176,13 @@ export function SleeveElem(props: IProps): React.ReactElement {
</Button>
<Typography>{desc}</Typography>
<Typography>
{props.sleeve.currentTask === SleeveTaskType.Crime &&
createProgressBarText({
progress: props.sleeve.currentTaskTime / props.sleeve.currentTaskMaxTime,
totalTicks: 25,
})}
{props.sleeve.currentTask === SleeveTaskType.Crime && (
<ProgressBar
variant="determinate"
value={(props.sleeve.currentTaskTime / props.sleeve.currentTaskMaxTime) * 100}
color="primary"
/>
)}
</Typography>
</Box>
</Box>