Bump flow version

Reviewed By: priteshrnandgaonkar

Differential Revision: D12839991

fbshipit-source-id: 1dcca0a0bc682bf24430c7313d4af14b87cfc44d
This commit is contained in:
Pascal Hartig
2018-10-30 16:59:22 -07:00
committed by Facebook Github Bot
parent 5ec2add066
commit 0a6dbfcf3e
10 changed files with 2351 additions and 471 deletions

View File

@@ -107,6 +107,7 @@ type TrackArgs = {|
type SearchResultTree = {|
id: string,
isMatch: Boolean,
hasChildren: boolean,
children: ?Array<SearchResultTree>,
element: Element,
axElement: Element,
@@ -476,11 +477,13 @@ export default class Layout extends FlipperPlugin<InspectorState> {
});
}
getElementsFromSearchResultTree(tree: ?SearchResultTree) {
getElementsFromSearchResultTree(
tree: ?SearchResultTree,
): Array<SearchResultTree> {
if (!tree) {
return [];
}
var elements = [
let elements = [
{
id: tree.id,
isMatch: tree.isMatch,

View File

@@ -75,7 +75,7 @@ export default class ErrorBoundary extends Component<
</ErrorBoundaryContainer>
);
} else {
return this.props.children;
return this.props.children || null;
}
}
}

View File

@@ -9,7 +9,7 @@ import type {DataInspectorSetValue} from './DataInspector.js';
import {PureComponent} from 'react';
import styled from '../../styled/index.js';
import {SketchPicker} from 'react-color';
import {Component} from 'react';
import {Component, Fragment} from 'react';
import Popover from '../Popover.js';
import {colors} from '../colors.js';
import Input from '../Input.js';
@@ -294,7 +294,7 @@ class ColorEditor extends Component<{
render() {
const colorInfo = parseColor(this.props.value);
if (!colorInfo) {
return;
return <Fragment />;
}
return (

View File

@@ -464,7 +464,7 @@ export default class DataInspector extends Component<DataInspectorProps> {
}
}
let propertyNodesContainer;
let propertyNodesContainer = null;
if (isExpandable && isExpanded) {
const propertyNodes = [];
@@ -532,7 +532,7 @@ export default class DataInspector extends Component<DataInspectorProps> {
if (typeof name !== 'undefined') {
nameElems.push(
<Tooltip
title={tooltips && tooltips[name]}
title={tooltips != null && tooltips[name]}
key="name"
options={nameTooltipOptions}>
<InspectorName>{name}</InspectorName>