react-bootstrap-toggle
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "react-bootstrap-toggle", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A React version of the bootstrap-toggle without the JQuery dependency", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -122,2 +122,4 @@ import React, { Component } from 'react'; | ||
disabled, | ||
width, | ||
height, | ||
...props } = this.props; | ||
@@ -127,14 +129,6 @@ | ||
let s = {}; | ||
if (this.props.width && this.props.height) { | ||
s = { | ||
width: this.props.width, | ||
height: this.props.height, | ||
}; | ||
} else { | ||
s = { | ||
width: this.state.width, | ||
height: this.state.height, | ||
}; | ||
} | ||
const s = { | ||
width: this.state.width || width, | ||
height: this.state.height || height, | ||
}; | ||
@@ -141,0 +135,0 @@ return ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37986
912