Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import autobind from 'autobind-decorator';
import OriginalSlider from 'rc-slider';
import {formInput} from '../../form';
import {createStyle} from '../../utils/style-utils';
import 'rc-slider/assets/index.css';
import style from './style';
@autobind
export default class Slider extends Component {
static propTypes = {
...OriginalSlider.propTypes
};
static defaultProps = {
};
render(){
const {className, error, value, min, ...otherProps} = this.props;
const s = createStyle(style, className, {
root: {
error
}
});
const safeValue = isNaN(value)?0:value;