Catchup UI Packages with Radarr

Eliminates github security advisory
This commit is contained in:
Qstick 2020-03-03 20:54:11 -05:00
commit a33a3779d2
3 changed files with 1878 additions and 1381 deletions

View file

@ -46,28 +46,12 @@ class QualityDefinition extends Component {
constructor(props, context) {
super(props, context);
this._forceUpdateTimeout = null;
this.state = {
sliderMinSize: getSliderValue(props.minSize, slider.min),
sliderMaxSize: getSliderValue(props.maxSize, slider.max)
};
}
componentDidMount() {
// A hack to deal with a bug in the slider component until a fix for it
// lands and an updated version is available.
// See: https://github.com/mpowaga/react-slider/issues/115
this._forceUpdateTimeout = setTimeout(() => this.forceUpdate(), 1);
}
componentWillUnmount() {
if (this._forceUpdateTimeout) {
clearTimeout(this._forceUpdateTimeout);
}
}
//
// Listeners
@ -167,11 +151,11 @@ class QualityDefinition extends Component {
step={slider.step}
minDistance={10}
value={[sliderMinSize, sliderMaxSize]}
withBars={true}
withTracks={true}
snapDragDisabled={true}
className={styles.slider}
barClassName={styles.bar}
handleClassName={styles.handle}
trackClassName={styles.bar}
thumbClassName={styles.handle}
onChange={this.onSliderChange}
onAfterChange={this.onAfterSliderChange}
/>