mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-19 02:25:00 +01:00
visuals for enabling/disableing
This commit is contained in:
@@ -7,7 +7,7 @@ interface IProps {
|
||||
label?: string
|
||||
checked: boolean
|
||||
onChange: () => void
|
||||
id: string
|
||||
id?: string
|
||||
}
|
||||
|
||||
interface IState {
|
||||
@@ -35,6 +35,7 @@ export default class Checkbox extends React.Component<IProps, IState> {
|
||||
|
||||
handleChange = () => {
|
||||
this.setState({ checked: !this.state.checked })
|
||||
console.log(this.props.onChange)
|
||||
this.props.onChange()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user