1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-29 05:10:05 +02:00

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