feat: add skip to the category page setting for home and bookmark pages

This commit is contained in:
Kentai Radiquum 2024-11-21 18:33:19 +05:00
parent 487ae9a1e4
commit e985b65252
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 184 additions and 29 deletions

View file

@ -14,6 +14,11 @@ interface preferencesState {
params: {
isFirstLaunch?: boolean;
version?: string;
skipToCategory?: {
enabled: boolean;
homeCategory: string;
bookmarksCategory: string;
}
// color: {
// primary: string;
// secondary: string;
@ -38,6 +43,11 @@ export const usePreferencesStore = create<preferencesState>()(
params: {
isFirstLaunch: true,
version: "3.0.0",
skipToCategory: {
enabled: false,
homeCategory: "last",
bookmarksCategory: "watching",
}
},
setHasHydrated: (state) => {
set({