mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +01:00
cleanup
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,4 +18,8 @@
|
||||
.InnerProgress {
|
||||
height: 100%;
|
||||
background-color: #00a8ff;
|
||||
}
|
||||
|
||||
.ProgressText {
|
||||
color: #fff;
|
||||
}
|
||||
@@ -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%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user