defaultPreferences.defaultRootTab
This commit is contained in:
@ -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" />
|
||||
|
@ -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`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user