chore: lint

This commit is contained in:
190km
2024-12-26 01:26:53 +01:00
parent c3476a1fdf
commit 46348f43f6
5 changed files with 31 additions and 26 deletions

View File

@@ -34,14 +34,16 @@ import { useTheme } from "next-themes";
import { useEffect } from "react";
import { toast } from "sonner";
const languageCodes = Object.values(Languages).map(lang => lang.code) as string[];
const appearanceFormSchema = z.object({
theme: z.enum(["light", "dark", "system"], {
required_error: "Please select a theme.",
}),
language: z.enum(Object.values(Languages).map(lang => lang.code), {
language: z.enum(languageCodes, {
required_error: "Please select a language.",
}),
})
});
type AppearanceFormValues = z.infer<typeof appearanceFormSchema>;