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} defaultFilters={DEFAULT_FILTERS}
zebra={false} zebra={false}
actions={<Button onClick={this.clearLogs}>Clear Logs</Button>} 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 // If the logs is opened through deeplink, then don't scroll as the row is highlighted
stickyBottom={ stickyBottom={
!(this.props.deepLinkPayload && this.state.highlightedRows.size > 0) !(this.props.deepLinkPayload && this.state.highlightedRows.size > 0)

View File

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

View File

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