Something with missing files and missing labels
This commit is contained in:
parent
fcfffa1706
commit
bfb4856352
2 changed files with 14 additions and 0 deletions
11
.flowconfig
Normal file
11
.flowconfig
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[ignore]
|
||||||
|
|
||||||
|
[include]
|
||||||
|
src/
|
||||||
|
|
||||||
|
[libs]
|
||||||
|
types/types.js
|
||||||
|
|
||||||
|
[options]
|
||||||
|
esproposal.export_star_as=enable
|
||||||
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
@ -82,10 +82,13 @@ const onSliderChange = (state: State, props: ControlUI) =>
|
||||||
};
|
};
|
||||||
|
|
||||||
export const slider = (state: State, props: ControlUI) => (
|
export const slider = (state: State, props: ControlUI) => (
|
||||||
|
<div>
|
||||||
|
<span>{props.text}</span>
|
||||||
<Slider value={state.values[props.topic]}
|
<Slider value={state.values[props.topic]}
|
||||||
min={props.min == null ? 0 : props.min}
|
min={props.min == null ? 0 : props.min}
|
||||||
max={props.max == null ? 1 : props.max}
|
max={props.max == null ? 1 : props.max}
|
||||||
step={props.step == null ? 1 : props.step}
|
step={props.step == null ? 1 : props.step}
|
||||||
onChange={onSliderChange(state, props)}
|
onChange={onSliderChange(state, props)}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue