Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename TextFilter to Search #55731

Merged
merged 1 commit into from Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/dataviews/dataviews.js
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
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