mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
feat: add skip to the category page setting for home and bookmark pages
This commit is contained in:
parent
487ae9a1e4
commit
e985b65252
5 changed files with 184 additions and 29 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue