refactor(frontend): Make dashboard search box the first filter (#19721)

This commit is contained in:
Cemre Mengu 2022-12-08 01:56:53 +03:00 committed by GitHub
parent 60a617eaba
commit 08f2c9b305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -463,6 +463,13 @@ function DashboardList(props: DashboardListProps) {
const filters: Filters = useMemo(
() => [
{
Header: t('Search'),
key: 'search',
id: 'dashboard_title',
input: 'search',
operator: FilterOperator.titleOrSlug,
},
{
Header: t('Owner'),
key: 'owner',
@ -533,13 +540,6 @@ function DashboardList(props: DashboardListProps) {
{ label: t('No'), value: false },
],
},
{
Header: t('Search'),
key: 'search',
id: 'dashboard_title',
input: 'search',
operator: FilterOperator.titleOrSlug,
},
],
[addDangerToast, favoritesFilter, props.user],
);