Files
flipper/src/ui/components
JianyingLi 2564bce5a0 Fix DataInspector Component diff some problems. (#397)
Summary:
1. In `diffMetadataExtractor` function, when the `data` or `diff` is `null`, it diff view does not display correctly.

```jsx

<Panel floating={false} heading={'Test'}>
  <ManagedDataInspector
    diff={{
      auth: null
    }}
    data={{
      auth: {
        user: {
          name: 'JianyingLi'
        }
      }
    }}
    expandRoot={true}
  />
</Panel>
```

Before:
![2561552808023_ pic](https://user-images.githubusercontent.com/3889523/54486986-db383b80-48ca-11e9-9869-a008f72f4324.jpg)

After:
![2551552807969_ pic](https://user-images.githubusercontent.com/3889523/54486992-ea1eee00-48ca-11e9-90b0-7fd043f1c2bd.jpg)

2. Status `added`(green) and `removed`(red) should be the opposite

```jsx
<ManagedDataInspector
  diff={{
    user: {
      name: 'Leo'
    }
  }}
  data={{
    user: {
      name: 'JianyingLi'
    }
  }}
  expandRoot={true}
/>
```

Before:
![2591552808195_ pic](https://user-images.githubusercontent.com/3889523/54487019-35390100-48cb-11e9-8c20-1526aeae52a1.jpg)

After:
![2581552808145_ pic](https://user-images.githubusercontent.com/3889523/54487022-3c600f00-48cb-11e9-9ea9-75a8c8490c22.jpg)
Pull Request resolved: https://github.com/facebook/flipper/pull/397

Reviewed By: danielbuechele

Differential Revision: D14505757

Pulled By: passy

fbshipit-source-id: 35ca1bf8721468fdde13f3a9ede75cb72a59caea
2019-03-19 17:04:15 -07:00
..
2018-12-14 10:35:12 -08:00
2019-03-15 05:13:30 -07:00
2018-10-22 09:54:59 -07:00
2019-02-25 03:01:30 -08:00
2019-02-28 07:28:25 -08:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2018-12-18 08:37:28 -08:00
2018-11-05 03:12:23 -08:00
2018-11-05 03:12:23 -08:00
2018-08-23 09:42:18 -07:00
2018-10-22 09:54:59 -07:00
2018-08-23 09:42:18 -07:00
2018-11-05 03:12:23 -08:00
2018-11-05 03:12:23 -08:00
2018-11-05 03:12:23 -08:00
2018-11-05 03:12:23 -08:00
2018-11-05 03:12:23 -08:00
2018-08-23 09:42:18 -07:00
2018-12-18 08:37:28 -08:00
2018-11-05 03:12:23 -08:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2019-01-29 09:32:05 -08:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2018-12-14 10:35:12 -08:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2019-03-19 04:17:40 -07:00
2018-06-01 11:03:58 +01:00
2018-11-05 03:12:23 -08:00
2018-11-07 06:27:33 -08:00
2019-01-09 10:48:18 -08:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2018-12-14 10:35:12 -08:00
2018-11-05 03:12:23 -08:00
2018-10-22 09:54:59 -07:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2018-08-23 09:42:18 -07:00
2018-09-18 07:01:16 -07:00
2018-08-23 09:42:18 -07:00
2018-11-05 03:12:23 -08:00
2018-08-23 09:42:18 -07:00
2018-10-22 09:54:59 -07:00
2018-06-01 11:03:58 +01:00
2018-10-22 09:54:59 -07:00