From 9c992112215166880f8221ac623b68af9676426a Mon Sep 17 00:00:00 2001 From: John Knox Date: Thu, 20 Jun 2019 06:24:08 -0700 Subject: [PATCH] Rename regexSupported to allowRegexSearch Summary: This was annoying me so I thought I'd rename it before anyone else starts to use the prop. Reviewed By: danielbuechele Differential Revision: D15919159 fbshipit-source-id: c351503797cedc5c11a158cec62515b1eb791a70 --- src/plugins/logs/index.js | 2 +- src/plugins/network/index.js | 2 +- src/ui/components/searchable/Searchable.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/logs/index.js b/src/plugins/logs/index.js index 05648b426..525a9b6e4 100644 --- a/src/plugins/logs/index.js +++ b/src/plugins/logs/index.js @@ -637,7 +637,7 @@ export default class LogTable extends FlipperDevicePlugin< defaultFilters={DEFAULT_FILTERS} zebra={false} actions={} - regexSupported={true} + allowRegexSearch={true} // If the logs is opened through deeplink, then don't scroll as the row is highlighted stickyBottom={ !(this.props.deepLinkPayload && this.state.highlightedRows.size > 0) diff --git a/src/plugins/network/index.js b/src/plugins/network/index.js index feecf4993..19ad30ed5 100644 --- a/src/plugins/network/index.js +++ b/src/plugins/network/index.js @@ -454,7 +454,7 @@ class NetworkTable extends PureComponent { onRowHighlighted={this.props.onRowHighlighted} highlightedRows={this.props.highlightedRows} rowLineHeight={26} - regexSupported={true} + allowRegexSearch={true} zebra={false} actions={} /> diff --git a/src/ui/components/searchable/Searchable.js b/src/ui/components/searchable/Searchable.js index 75e18ee25..16624d3ad 100644 --- a/src/ui/components/searchable/Searchable.js +++ b/src/ui/components/searchable/Searchable.js @@ -87,7 +87,7 @@ export type SearchableProps = {| addFilter: (filter: Filter) => void, searchTerm: string, filters: Array, - regexSupported?: boolean, + allowRegexSearch?: boolean, regexEnabled?: boolean, |}; @@ -98,7 +98,7 @@ type Props = {| columns?: TableColumns, onFilterChange: (filters: Array) => void, defaultFilters: Array, - regexSupported: boolean, + allowRegexSearch: boolean, |}; type State = { @@ -441,7 +441,7 @@ const Searchable = ( regex={this.state.regexEnabled && this.state.searchTerm} /> - {this.props.regexSupported ? ( + {this.props.allowRegexSearch ? (