mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
visuals for enabling/disableing
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
.CheckboxDisplay img {
|
||||
height: 100%;
|
||||
height: 100% !important;
|
||||
filter: invert(99%) sepia(0%) saturate(1188%) hue-rotate(186deg) brightness(97%) contrast(67%);
|
||||
}
|
||||
|
||||
|
||||
@@ -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