Something with missing files and missing labels

This commit is contained in:
uwap 2017-09-17 05:49:06 +02:00
parent fcfffa1706
commit bfb4856352
2 changed files with 14 additions and 0 deletions

11
.flowconfig Normal file
View file

@ -0,0 +1,11 @@
[ignore]
[include]
src/
[libs]
types/types.js
[options]
esproposal.export_star_as=enable
unsafe.enable_getters_and_setters=true

View file

@ -82,10 +82,13 @@ const onSliderChange = (state: State, props: ControlUI) =>
};
export const slider = (state: State, props: ControlUI) => (
<div>
<span>{props.text}</span>
<Slider value={state.values[props.topic]}
min={props.min == null ? 0 : props.min}
max={props.max == null ? 1 : props.max}
step={props.step == null ? 1 : props.step}
onChange={onSliderChange(state, props)}
/>
</div>
);