feat: Add email field to end_customers table and UI screens
All checks were successful
Staging Build / build (push) Successful in 2m36s
All checks were successful
Staging Build / build (push) Successful in 2m36s
This commit is contained in:
@@ -21,7 +21,7 @@ export default function CustomerDetailPage({ params }: { params: Promise<{ id: s
|
||||
const [anonymizing, setAnonymizing] = useState(false)
|
||||
const [showGdprConfirm, setShowGdprConfirm] = useState(false)
|
||||
const [form, setForm] = useState({
|
||||
company_name: '', vat_id: '', first_name: '', last_name: '', street: '', zip: '', city: '',
|
||||
company_name: '', vat_id: '', first_name: '', last_name: '', street: '', zip: '', city: '', email: '',
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
@@ -37,6 +37,7 @@ export default function CustomerDetailPage({ params }: { params: Promise<{ id: s
|
||||
street: c.street ?? '',
|
||||
zip: c.zip ?? '',
|
||||
city: c.city ?? '',
|
||||
email: c.email ?? '',
|
||||
})
|
||||
setLoading(false)
|
||||
})
|
||||
@@ -121,6 +122,7 @@ export default function CustomerDetailPage({ params }: { params: Promise<{ id: s
|
||||
{ label: 'USt-IdNr.', key: 'vat_id', span: false },
|
||||
{ label: 'Vorname', key: 'first_name', span: false },
|
||||
{ label: 'Nachname', key: 'last_name', span: false },
|
||||
{ label: 'E-Mail', key: 'email', span: true },
|
||||
{ label: 'Straße & Hausnummer', key: 'street', span: true },
|
||||
{ label: 'PLZ', key: 'zip', span: false },
|
||||
{ label: 'Ort', key: 'city', span: false },
|
||||
|
||||
Reference in New Issue
Block a user