Drop the hard-coded what's hot algo

This commit is contained in:
Paul Frazee 2023-05-18 15:12:18 -05:00
parent 2f4408582b
commit 84990c509e
6 changed files with 36 additions and 100 deletions

View file

@ -28,12 +28,7 @@ const FeedsTabBarDesktop = observer(
) => {
const store = useStores()
const items = useMemo(
() => [
'Following',
"What's hot",
...store.me.savedFeeds.pinnedFeedNames,
'My feeds',
],
() => ['Following', ...store.me.savedFeeds.pinnedFeedNames, 'My feeds'],
[store.me.savedFeeds.pinnedFeedNames],
)
const pal = usePalette('default')

View file

@ -33,12 +33,7 @@ export const FeedsTabBar = observer(
}, [store])
const items = useMemo(
() => [
'Following',
"What's hot",
...store.me.savedFeeds.pinnedFeedNames,
'My feeds',
],
() => ['Following', ...store.me.savedFeeds.pinnedFeedNames, 'My feeds'],
[store.me.savedFeeds.pinnedFeedNames],
)