Introduce DropDowns...

By the way, someone surely should cleanup this code...
This commit is contained in:
uwap 2017-09-17 04:13:31 +02:00
parent 021eaac0a2
commit eb96d9d511
5 changed files with 58 additions and 40 deletions

View file

@ -54,8 +54,8 @@ const handleEvent = (state = appState, action) => {
const store = createStore(handleEvent);
const UiItem = (state) => (props) =>
UiItems[props.type](R.merge(props, {state:state}));
const UiItem = (state) => (props : ControlUI) =>
UiItems[props.type](state, props);
const renderUi = (state, key) => key != null && Config.controls[key] != null ?
R.map(UiItem(state), Config.controls[key].ui) : null;