mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
adding in onChange prop to Range Slider
This commit is contained in:
parent
d65414731e
commit
272b8fcf43
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user