Skip to content

Commit

Permalink
Sort by relevance now is default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Nov 23, 2024
1 parent 605566d commit 9f93d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/modules/components/search.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const options: readonly { value: number, label: String }[] = [
];

const options_sortir: readonly { value: string, label: String }[] = [
{ value: 'popular_up', label: 'По популярности' },
{ value: 'relevant_up', label: 'По релевантности' },
{ value: 'popular_up', label: 'По популярности' },
{ value: 'date_up', label: 'По дате создания' },
{ value: 'name_up', label: 'По имени' }
];
Expand Down
2 changes: 1 addition & 1 deletion src/app/workshop/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Home() {
const [categories, setCategories] = useState<Category[]>([]);

const [filters, setFilters] = useState<Category[]>([]);
const [sort, setSort] = useState<string>('popular_up');
const [sort, setSort] = useState<string>('relevant_up');
const [alertShown, setAlertShown] = useState<boolean>(false);


Expand Down

0 comments on commit 9f93d41

Please sign in to comment.