From fdf4ea4213bf674e2708f1bd2c350a78af3996bd Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Sat, 4 Jul 2026 07:17:08 +0000 Subject: [PATCH] =?UTF-8?q?A:=20Remove=20address=20fields=20from=20Contact?= =?UTF-8?q?Form=20=E2=80=94=20addresses=20now=20via=20AddressList=20in=20d?= =?UTF-8?q?etail=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ContactForm.tsx | 51 ------------------------------ 1 file changed, 51 deletions(-) diff --git a/frontend/src/pages/ContactForm.tsx b/frontend/src/pages/ContactForm.tsx index 86475f4..e0b99ce 100644 --- a/frontend/src/pages/ContactForm.tsx +++ b/frontend/src/pages/ContactForm.tsx @@ -19,11 +19,6 @@ const contactSchema = z.object({ email: z.string().email('Ungültige E-Mail-Adresse').max(255).optional().or(z.literal('')), phone: z.string().max(30).optional().or(z.literal('')), position: z.string().max(100).optional().or(z.literal('')), - address_street: z.string().max(255).optional().or(z.literal('')), - address_city: z.string().max(100).optional().or(z.literal('')), - address_zip: z.string().max(20).optional().or(z.literal('')), - address_country: z.string().max(2).optional().or(z.literal('')), - address_state: z.string().max(100).optional().or(z.literal('')), }); type ContactFormValues = z.infer; @@ -54,11 +49,6 @@ export function ContactFormPage() { email: '', phone: '', position: '', - address_street: '', - address_city: '', - address_zip: '', - address_country: '', - address_state: '', }, }); @@ -70,11 +60,6 @@ export function ContactFormPage() { email: contact.email || '', phone: contact.phone || '', position: contact.position || '', - address_street: (contact as any).address_street || '', - address_city: (contact as any).address_city || '', - address_zip: (contact as any).address_zip || '', - address_country: (contact as any).address_country || '', - address_state: (contact as any).address_state || '', }); setSelectedCompanyIds(contact.company_ids || (contact.companies?.map((c) => c.id) || [])); } @@ -180,42 +165,6 @@ export function ContactFormPage() { /> - -
- - - - - -
-
- {availableCompanies.length === 0 ? (

{t('companies.emptyTitle')}