mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-04 05:25:22 +02:00
chore: lint
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user