fix(catalog): if time filter is 'bump order', it should say 'last bumped' instead of 'newer than'

This commit is contained in:
Tom (plebeius.eth)
2024-10-29 15:56:43 +01:00
parent 8bd5d25010
commit 71ba306ec1
36 changed files with 73 additions and 36 deletions
@@ -197,11 +197,13 @@ export const TimeFilter = ({ isInAllView, isInCatalogView, isInSubscriptionsView
link && navigate(link);
};
const { sortType } = useSortingStore();
return (
<>
{!isTopbar ? (
<>
<span>{t('newer_than')}</span>:&nbsp;
<span>{isInCatalogView ? (sortType === 'active' ? t('last_bumped') : t('newer_than')) : t('last_bumped')}</span>:&nbsp;
</>
) : (
<> </>