mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
mod enabling and disabling
This commit is contained in:
@@ -35,7 +35,6 @@ export default class Checkbox extends React.Component<IProps, IState> {
|
||||
|
||||
handleChange = () => {
|
||||
this.setState({ checked: !this.state.checked })
|
||||
console.log(this.props.onChange)
|
||||
this.props.onChange()
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ export default class ProgressBar extends React.Component<IProps, IState> {
|
||||
></div>
|
||||
</div>
|
||||
|
||||
{this.props.withStats && (
|
||||
{(this.props.withStats === undefined || this.props.withStats) && (
|
||||
<div className="MainProgressText">
|
||||
<Tr text="main.files_downloading" /> {this.state.files} ({this.state.speed})
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user