From 086ab0188b4171c45d873eda1c610e157262e721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Mon, 22 Oct 2018 09:52:19 -0700 Subject: [PATCH] rename fill attribute Summary: We were using `fill={true}` as an attribute to make flexbox containers fill the entire available space. However, `fill` is an HTML attribute (see: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill) This caused warnings printed to the console. This diff renames the attribute to `grow` with is also more in line with the Flexbox terminology. Reviewed By: priteshrnandgaonkar Differential Revision: D10488389 fbshipit-source-id: ed8553c6203cdf6df94d26c731164ecec4c9fbd2 --- src/App.js | 4 ++-- src/__tests__/__snapshots__/App.electron.js.snap | 2 -- src/chrome/BugReporterDialog.js | 4 ++-- src/chrome/PluginManager.js | 4 ++-- src/createTablePlugin.js | 2 +- src/plugins/cpu/index.js | 2 +- src/plugins/layout/index.js | 6 +++--- src/plugins/leak_canary/index.js | 8 ++++---- src/plugins/logs/LogWatcher.js | 2 +- src/plugins/network/index.js | 2 +- src/plugins/sandbox/index.js | 2 +- src/plugins/shared_preferences/index.js | 4 ++-- src/ui/components/ErrorBoundary.js | 2 +- src/ui/components/Interactive.js | 8 ++++---- src/ui/components/Panel.js | 12 ++++++------ src/ui/components/Tabs.js | 2 +- src/ui/components/View.js | 4 ++-- src/ui/components/VirtualList.js | 2 +- src/ui/components/console.js | 2 +- .../elements-inspector/ElementsInspector.js | 2 +- src/ui/components/elements-inspector/sidebar.js | 4 ++-- src/ui/components/intro/intro.js | 2 +- src/ui/components/table/TableHead.js | 2 +- 23 files changed, 41 insertions(+), 43 deletions(-) diff --git a/src/App.js b/src/App.js index 688e478e2..da3d2384c 100644 --- a/src/App.js +++ b/src/App.js @@ -49,7 +49,7 @@ export class App extends React.Component { } render() { return ( - + {this.props.bugDialogVisible && ( { }} /> )} - + {this.props.leftSidebarVisible && } {this.props.selectedDevice ? ( diff --git a/src/__tests__/__snapshots__/App.electron.js.snap b/src/__tests__/__snapshots__/App.electron.js.snap index 3eb77b1a2..8c1b8591a 100644 --- a/src/__tests__/__snapshots__/App.electron.js.snap +++ b/src/__tests__/__snapshots__/App.electron.js.snap @@ -3,7 +3,6 @@ exports[`Empty app state matches snapshot 1`] = `
{ if (success) { content = ( - + Bug @@ -204,7 +204,7 @@ export default class BugReporterDialog extends Component { ); } else { content = ( - + { ); return ( - + {this.state.restartRequired && ( @@ -396,7 +396,7 @@ const SearchablePluginManager = Searchable(PluginManager); export default class extends PureComponent<{}> { render() { return ( - + ); diff --git a/src/createTablePlugin.js b/src/createTablePlugin.js index 0461baa63..2fb3d1f93 100644 --- a/src/createTablePlugin.js +++ b/src/createTablePlugin.js @@ -185,7 +185,7 @@ export function createTablePlugin(props: Props) { const {rows} = this.state; return ( - + { render() { return ( - + {this.state.monitoring ? (