Fix indentation

This commit is contained in:
uwap 2018-10-20 09:03:15 +02:00
parent 08aff120bd
commit a0cb05b294

View file

@ -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));