Introduce DropDowns...
By the way, someone surely should cleanup this code...
This commit is contained in:
parent
021eaac0a2
commit
eb96d9d511
5 changed files with 58 additions and 40 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue