Fix indentation
This commit is contained in:
parent
08aff120bd
commit
a0cb05b294
1 changed files with 9 additions and 9 deletions
|
|
@ -81,15 +81,15 @@ const safeIncludes = (o: {+type?: string, +text?: string, +topic?: string},
|
||||||
|
|
||||||
const isVisible = (props: ControlMapProps) =>
|
const isVisible = (props: ControlMapProps) =>
|
||||||
(c: UIControl & {ui?: Array<ControlUI>}) => {
|
(c: UIControl & {ui?: Array<ControlUI>}) => {
|
||||||
if (safeIncludes(c, props.search.toLowerCase())) {
|
if (safeIncludes(c, props.search.toLowerCase())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (c.ui != null) {
|
if (c.ui != null) {
|
||||||
return reduce(c.ui,
|
return reduce(c.ui,
|
||||||
(b, e) => b || safeIncludes(e, props.search.toLowerCase()), false);
|
(b, e) => b || safeIncludes(e, props.search.toLowerCase()), false);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderMarkers = (props: ControlMapProps) =>
|
const renderMarkers = (props: ControlMapProps) =>
|
||||||
map(filter(props.controls, isVisible(props)), renderMarker(props));
|
map(filter(props.controls, isVisible(props)), renderMarker(props));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue