- Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I used the code from the documentation:
<BootstrapSwitchButton checked={false} onlabel='Admin User' onstyle='danger' offlabel='Regular User' offstyle='success' style='w-100 mx-3' onChange={(checked: boolean) => { this.setState({ isUserAdmin: checked }) }} /> And it produced a style violation:
./src/App.js Line 102: Style prop value must be an object react/style-prop-object Line 112: Style prop value must be an object react/style-prop-object Line 122: Style prop value must be an object react/style-prop-object Line 132: Style prop value must be an object react/style-prop-object Metadata
Metadata
Assignees
Labels
No labels