ToggleSwitch

Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181148

fbshipit-source-id: 959a01fd61950ddb263c3b9c44c9069d19541c36
This commit is contained in:
Daniel Büchele
2019-09-05 04:40:39 -07:00
committed by Facebook Github Bot
parent cfd4793d05
commit e29563cfca

View File

@@ -66,7 +66,7 @@ export default class ToggleButton extends React.Component<Props> {
<> <>
<StyledButton <StyledButton
className={this.props.className} className={this.props.className}
toggled={this.props.toggled} toggled={this.props.toggled || false}
onClick={this.props.onClick} onClick={this.props.onClick}
/> />
{this.props.label && <Label>{this.props.label}</Label>} {this.props.label && <Label>{this.props.label}</Label>}