feat(catalog): add reply-count sorting mode

This commit is contained in:
plebeius
2026-02-23 17:09:26 +08:00
parent 7eac1d8dff
commit 24d7b3e057
6 changed files with 175 additions and 17 deletions
@@ -198,7 +198,7 @@ const SortOptions = () => {
const { sortType, setSortType } = useSortingStore();
const handleSortChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
const type = event.target.value as 'active' | 'new';
const type = event.target.value as 'active' | 'new' | 'replyCount';
setSortType(type);
};
return (
@@ -207,6 +207,7 @@ const SortOptions = () => {
<select className='capitalize' value={sortType} onChange={handleSortChange}>
<option value='active'>{t('bump_order')}</option>
<option value='new'>{t('creation_date')}</option>
<option value='replyCount'>{t('reply_count')}</option>
</select>
</>
);