File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import {
3434import { Switch } from "@/components/ui/switch"
3535import { Textarea } from "@/components/ui/textarea"
3636import { IconButton } from "@/components/xui/icon-button"
37- import i18n from "@/lib/i18n"
3837import {
3938 type PublicNote ,
4039 applyPublicNoteDate ,
@@ -55,6 +54,7 @@ import { zodResolver } from "@hookform/resolvers/zod"
5554import { HelpCircle } from "lucide-react"
5655import { useState } from "react"
5756import { useForm } from "react-hook-form"
57+ import { useTranslation } from "react-i18next"
5858import { toast } from "sonner"
5959import { KeyedMutator } from "swr"
6060import { z } from "zod"
@@ -92,7 +92,7 @@ const serverFormSchema = z.object({
9292} )
9393
9494export const ServerCard : React . FC < ServerCardProps > = ( { data, mutate } ) => {
95- const t = i18n . t
95+ const { t } = useTranslation ( )
9696 const form = useForm ( {
9797 resolver : zodResolver ( serverFormSchema ) as any ,
9898 defaultValues : {
You can’t perform that action at this time.
0 commit comments