global tab fix, root tab routing

This commit is contained in:
Martti Malmi
2024-02-03 13:38:03 +02:00
parent ce2218bc93
commit 4dff677809
7 changed files with 47 additions and 30 deletions

View File

@ -1,4 +1,5 @@
import { ImgProxySettings } from "@/Hooks/useImgProxy";
import { RootTabRoutePath } from "@/Pages/Root/RootTabRoutes";
import { DefaultImgProxy } from "@/Utils/Const";
export interface UserPreferences {
@ -55,7 +56,7 @@ export interface UserPreferences {
/**
* Default page to select on load
*/
defaultRootTab: "for-you" | "notes" | "conversations" | "global";
defaultRootTab: RootTabRoutePath;
/**
* Default zap amount
@ -113,7 +114,7 @@ export const DefaultPreferences = {
autoShowLatest: false,
fileUploader: "void.cat",
imgProxyConfig: DefaultImgProxy,
defaultRootTab: CONFIG.features.forYouFeed ? "for-you" : "notes",
defaultRootTab: CONFIG.features.forYouFeed ? "for-you" : "following",
defaultZapAmount: 50,
autoZap: false,
telemetry: true,