defaultPreferences.defaultRootTab

This commit is contained in:
Martti Malmi
2024-02-12 11:55:14 +02:00
parent 3e43300077
commit 18c366502c
10 changed files with 17 additions and 18 deletions

View File

@ -10,7 +10,7 @@ export function rootTabItems(base: string, pubKey: string | undefined, tags: New
{
tab: "for-you",
path: `${base}/for-you`,
show: Boolean(pubKey) && CONFIG.features.forYouFeed,
show: Boolean(pubKey),
element: (
<>
<Icon name="user-v2" />

View File

@ -26,7 +26,7 @@ export function RootTabs({ base = "/" }: { base: string }) {
let defaultTab: RootTabRoutePath;
if (pubKey) {
defaultTab = preferences.defaultRootTab ?? (CONFIG.features.forYouFeed ? "for-you" : "following");
defaultTab = preferences.defaultRootTab;
} else {
defaultTab = `trending/notes`;
}