fix: theme persistence

save user theme preferences  in session instead of localStorage
This commit is contained in:
Sonny
2024-05-13 23:58:08 +02:00
committed by Sonny
parent f0e64c19fd
commit 243984ca66
7 changed files with 35 additions and 13 deletions

View File

@@ -0,0 +1,7 @@
import vine from '@vinejs/vine';
export const updateUserThemeValidator = vine.compile(
vine.object({
preferDarkTheme: vine.boolean(),
})
);