1
0
Fork 0

:consruction: Progress on pattern option and draft setting components

This commit is contained in:
Joost De Cock 2019-04-22 18:00:26 +02:00
parent fa43bf1d0c
commit 3ca3742953
38 changed files with 790 additions and 153 deletions

View file

@ -13,7 +13,7 @@ const FormFieldSlider = props => {
const [value, setValue] = useState(props.value);
const update = (evt, newValue) => {
props.updateOption(props.name, newValue, evt);
props.updateValue(props.name, newValue, evt);
setValue(newValue);
};
@ -41,7 +41,7 @@ FormFieldSlider.propTypes = {
min: PropTypes.number,
max: PropTypes.number,
step: PropTypes.number,
updateOption: PropTypes.func.isRequired,
updateValue: PropTypes.func.isRequired,
name: PropTypes.string.isRequired,
label: PropTypes.oneOfType([PropTypes.string, PropTypes.oneOf([false])])
};