adding in onChange prop to Range Slider

This commit is contained in:
Alex Windett 2016-11-01 11:36:06 +00:00
parent d65414731e
commit 272b8fcf43

View File

@ -4,6 +4,7 @@ const styles = require('./style.css');
const RangeSlider = ({ const RangeSlider = ({
className, className,
onChange,
style style
}) => { }) => {
@ -21,6 +22,7 @@ const RangeSlider = ({
return ( return (
<input <input
className={slider} className={slider}
onChange={onChange}
style={style} style={style}
type="range" type="range"
/> />
@ -29,6 +31,7 @@ const RangeSlider = ({
RangeSlider.propTypes = { RangeSlider.propTypes = {
className: React.PropTypes.string, className: React.PropTypes.string,
onChange: React.PropTypes.func,
style: React.PropTypes.object style: React.PropTypes.object
}; };