mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
fix: theme persistence
save user theme preferences in session instead of localStorage
This commit is contained in:
7
app/validators/user_theme.ts
Normal file
7
app/validators/user_theme.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import vine from '@vinejs/vine';
|
||||
|
||||
export const updateUserThemeValidator = vine.compile(
|
||||
vine.object({
|
||||
preferDarkTheme: vine.boolean(),
|
||||
})
|
||||
);
|
||||
Reference in New Issue
Block a user