fix game opening

This commit is contained in:
SpikeHD
2022-05-13 20:27:48 -07:00
parent 642405b888
commit a6b5891857
6 changed files with 27 additions and 23 deletions

View File

@@ -4,7 +4,7 @@ import checkmark from '../../../resources/icons/check.svg'
import './Checkbox.css'
interface IProps {
label: string,
label?: string,
checked: boolean,
onChange: () => void,
id: string
@@ -36,7 +36,7 @@ export default class Checkbox extends React.Component<IProps, IState> {
<div className="CheckboxDisplay">
{this.state.checked ? <img src={checkmark} alt='Checkmark' /> : null}
</div>
<span>{this.props.label}</span>
<span>{this.props.label || ''}</span>
</label>
</div>
)