fix: wrong route check, default time filter value, missing translation

This commit is contained in:
Tom (plebeius.eth)
2024-06-11 12:04:16 +02:00
parent fb02814118
commit 0831e757bb
38 changed files with 75 additions and 39 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ export const isCatalogView = (pathname: string, params: ParamsType): boolean =>
const decodedPathname = decodeURIComponent(pathname);
return (
decodedPathname === `/p/${subplebbitAddress}/catalog` ||
decodedPathname === `/p/${subplebbitAddress}/catalog/settings` ||
decodedPathname === `/p/all/catalog/settings` ||
decodedPathname === `/p/all/catalog` ||
decodedPathname === `/p/all/catalog/${timeFilterName}` ||
decodedPathname === `/p/subscriptions/catalog` ||