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
This commit is contained in:
John Knox
2019-06-20 06:24:08 -07:00
committed by Facebook Github Bot
parent b3979e7012
commit 9c99211221
3 changed files with 5 additions and 5 deletions

View File

@@ -637,7 +637,7 @@ export default class LogTable extends FlipperDevicePlugin<
defaultFilters={DEFAULT_FILTERS}
zebra={false}
actions={<Button onClick={this.clearLogs}>Clear Logs</Button>}
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)

View File

@@ -454,7 +454,7 @@ class NetworkTable extends PureComponent<NetworkTableProps, NetworkTableState> {
onRowHighlighted={this.props.onRowHighlighted}
highlightedRows={this.props.highlightedRows}
rowLineHeight={26}
regexSupported={true}
allowRegexSearch={true}
zebra={false}
actions={<Button onClick={this.props.clear}>Clear Table</Button>}
/>

View File

@@ -87,7 +87,7 @@ export type SearchableProps = {|
addFilter: (filter: Filter) => void,
searchTerm: string,
filters: Array<Filter>,
regexSupported?: boolean,
allowRegexSearch?: boolean,
regexEnabled?: boolean,
|};
@@ -98,7 +98,7 @@ type Props = {|
columns?: TableColumns,
onFilterChange: (filters: Array<Filter>) => void,
defaultFilters: Array<Filter>,
regexSupported: boolean,
allowRegexSearch: boolean,
|};
type State = {
@@ -441,7 +441,7 @@ const Searchable = (
regex={this.state.regexEnabled && this.state.searchTerm}
/>
</SearchBox>
{this.props.regexSupported ? (
{this.props.allowRegexSearch ? (
<ToggleSwitch
toggled={this.state.regexEnabled}
onClick={this.onRegexToggled}