Fix some more flow errors
This commit is contained in:
parent
48e9572925
commit
9cc827d5a6
2 changed files with 6 additions and 6 deletions
|
|
@ -14,4 +14,6 @@ injectTapEventPlugin();
|
|||
|
||||
document.title = `${Config.space.name} Map`;
|
||||
|
||||
ReactDOM.render(<App config={Config} />, document.getElementById("content"));
|
||||
// $FlowFixMe
|
||||
const contentElement: Element = document.getElementById("content");
|
||||
ReactDOM.render(<App config={Config} />, contentElement);
|
||||
|
|
|
|||
|
|
@ -11,12 +11,10 @@ export const renderIcon = (name: string, extraClass?: string) => {
|
|||
};
|
||||
|
||||
export const controlGetIcon = (control: Control, state: State): string => {
|
||||
const internals = _.mapValues(state, (x) => x.internal || x.actual);
|
||||
const actuals = _.mapValues(state, (x) => x.actual);
|
||||
return typeof control.icon !== "function" ? control.icon
|
||||
: control.icon(
|
||||
_.mapValues(state, (x) => x.internal || x.actual),
|
||||
_.mapValues(state, (x) => x.actual),
|
||||
state
|
||||
);
|
||||
: control.icon(internals, actuals, state);
|
||||
};
|
||||
|
||||
export const renderControlIcon = (control: Control,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue