Skip to content

Commit

Permalink
Rename TextFilter to Search (#55731)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored Oct 31, 2023
1 parent 12694ff commit b6a92c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/dataviews/dataviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ViewList from './view-list';
import Pagination from './pagination';
import ViewActions from './view-actions';
import Filters from './filters';
import TextFilter from './text-filter';
import Search from './search';
import { ViewGrid } from './view-grid';

export default function DataViews( {
Expand All @@ -41,7 +41,7 @@ export default function DataViews( {
<HStack>
<HStack justify="start">
{ search && (
<TextFilter
<Search
label={ searchLabel }
view={ view }
onChangeView={ onChangeView }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SearchControl } from '@wordpress/components';
*/
import useDebouncedInput from '../../utils/use-debounced-input';

export default function TextFilter( { label, view, onChangeView } ) {
export default function Search( { label, view, onChangeView } ) {
const [ search, setSearch, debouncedSearch ] = useDebouncedInput(
view.search
);
Expand Down

1 comment on commit b6a92c3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in b6a92c3.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6709494524
📝 Reported issues:

Please sign in to comment.