visuals for enabling/disableing

This commit is contained in:
SpikeHD
2022-07-25 19:23:05 -07:00
parent 95282a3f36
commit 9fa3351747
7 changed files with 67 additions and 17 deletions

View File

@@ -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()
}