mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 22:19:31 +02:00
Add site context?
This commit is contained in:
parent
b53d093065
commit
ab41695988
3 changed files with 26 additions and 12 deletions
|
@ -18,6 +18,7 @@ import {
|
|||
FormMessage,
|
||||
} from "@/components/ui/form"
|
||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
|
||||
import { useSiteContext } from "@app/hooks/useSiteContext"
|
||||
|
||||
const appearanceFormSchema = z.object({
|
||||
theme: z.enum(["light", "dark"], {
|
||||
|
@ -37,6 +38,10 @@ const defaultValues: Partial<AppearanceFormValues> = {
|
|||
}
|
||||
|
||||
export function AppearanceForm() {
|
||||
const site = useSiteContext();
|
||||
|
||||
console.log(site);
|
||||
|
||||
const form = useForm<AppearanceFormValues>({
|
||||
resolver: zodResolver(appearanceFormSchema),
|
||||
defaultValues,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue