bootstrap-switch-button-react icon indicating copy to clipboard operation
bootstrap-switch-button-react copied to clipboard

Using the sample code in react triggers a style violation

Open j4y opened this issue 5 years ago • 1 comments

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

j4y avatar Dec 12 '19 18:12 j4y

Hello, I have the same react warning. Does anyone has an advice, how to solve it, please? Thank you

vdusa avatar Dec 14 '21 11:12 vdusa