diff --git a/src/app/(dashboard)/settings/workspace/components/workspace-form.tsx b/src/app/(dashboard)/settings/workspace/components/workspace-form.tsx index 7e6a758..c9cc010 100644 --- a/src/app/(dashboard)/settings/workspace/components/workspace-form.tsx +++ b/src/app/(dashboard)/settings/workspace/components/workspace-form.tsx @@ -1,7 +1,7 @@ "use client"; import { useActionState, useEffect } from "react"; -import { Building2, Loader2, Receipt, Save } from "lucide-react"; +import { Building2, Loader2, Save } from "lucide-react"; import { toast } from "sonner"; import { Button } from "@/components/ui/button"; @@ -13,14 +13,11 @@ import { updateWorkspaceSettingsAction } from "@/lib/appwrite/workspace-actions" import { initialWorkspaceSettingsState } from "@/lib/appwrite/workspace-types"; type Defaults = { - companyName: string; - companyTaxId: string; - companyAddress: string; - companyEmail: string; - companyPhone: string; - defaultVatRate: number; - invoicePrefix: string; - invoiceCounter: number; + officeName: string; + phone: string; + email: string; + address: string; + defaultCurrency: string; }; export function WorkspaceSettingsForm({ @@ -47,128 +44,74 @@ export function WorkspaceSettingsForm({ - Şirket + Ofis Bilgileri - Resmi şirket bilgileriniz. + Müşterilere ve sunumlarda gösterilecek ofis bilgileri.
- + - {state.fieldErrors?.companyName && ( -

{state.fieldErrors.companyName}

+ {state.fieldErrors?.officeName && ( +

{state.fieldErrors.officeName}

)}
- + -
- -
- -
- + - {state.fieldErrors?.companyEmail && ( -

{state.fieldErrors.companyEmail}

- )}
- + + +
+ +
+