fix offline icon

This commit is contained in:
Tom (plebeius.eth)
2025-02-04 12:48:00 +01:00
parent b3ffd5f26c
commit 1886a68e05
3 changed files with 8 additions and 9 deletions
@@ -1,6 +1,5 @@
import { useMemo } from 'react';
// Add this helper function to collect unique tags from subplebbits
const getUniqueTags = (multisub: any) => {
const allTags = new Set<string>();
Object.values(multisub).forEach((sub: any) => {
@@ -11,7 +10,6 @@ const getUniqueTags = (multisub: any) => {
return Array.from(allTags).sort();
};
// Export tags as a derived value where it's needed
export const useDefaultSubplebbitTags = (subplebbits: any) => {
return useMemo(() => getUniqueTags(subplebbits), [subplebbits]);
};