mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 23:15:36 +00:00
feat: save user theme preference
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { THEMES } from '#user/constants/theme';
|
||||
import vine from '@vinejs/vine';
|
||||
|
||||
export const updateThemeValidator = vine.compile(
|
||||
vine.object({
|
||||
preferDarkTheme: vine.boolean(),
|
||||
theme: vine.enum(THEMES),
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user