mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 08:13:49 +10:00
fix: language selector in settings
This commit is contained in:
@ -9,7 +9,7 @@ import { useEffect } from "react";
|
|||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { LocaleCombobox } from "@/client/components/locale-combobox";
|
import { LocaleComboboxPopover } from "@/client/components/locale-combobox";
|
||||||
import { useUpdateUser, useUser } from "@/client/services/user";
|
import { useUpdateUser, useUser } from "@/client/services/user";
|
||||||
|
|
||||||
const formSchema = z.object({
|
const formSchema = z.object({
|
||||||
@ -94,7 +94,7 @@ export const ProfileSettings = () => {
|
|||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>{t`Language`}</FormLabel>
|
<FormLabel>{t`Language`}</FormLabel>
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<LocaleCombobox value={field.value} onValueChange={field.onChange} />
|
<LocaleComboboxPopover value={field.value} onValueChange={field.onChange} />
|
||||||
</div>
|
</div>
|
||||||
<FormDescription>
|
<FormDescription>
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
Reference in New Issue
Block a user