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

@@ -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}