downloads button

This commit is contained in:
SpikeHD
2022-05-09 16:26:13 -07:00
parent ba304fa3ea
commit 8798b29b7c
3 changed files with 18 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
import React from 'react'
interface IProps {
label: string
label: string,
onChange: () => void,
}
interface IState {
@@ -13,12 +14,13 @@ export default class Checkbox extends React.Component<IProps, IState> {
super(props)
this.state = {
checked: false,
checked: false
}
}
handleChange = () => {
this.setState({ checked: !this.state.checked })
this.props.onChange()
}
render() {