This commit is contained in:
SpikeHD
2022-05-09 22:26:45 -07:00
parent cf6ddde313
commit dd7d2d4cc5
4 changed files with 8 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react'
interface IProps {
label: string,
checked: boolean,
onChange: () => void,
}
@@ -14,7 +15,7 @@ export default class Checkbox extends React.Component<IProps, IState> {
super(props)
this.state = {
checked: false
checked: props.checked
}
}

View File

@@ -18,4 +18,8 @@
.InnerProgress {
height: 100%;
background-color: #00a8ff;
}
.ProgressText {
color: #fff;
}

View File

@@ -33,8 +33,6 @@ export default class ProgressBar extends React.Component<IProps, IState> {
total: prog?.total || 0,
})
console.log(prog)
if (this.state.status === 'finished' /* || this.state.status === 'error' */) {
// Ensure progress is 100%