feat: add directory opt-out sync and layout/xss seed data extensions

This commit is contained in:
t.indorf
2026-05-22 15:22:12 +02:00
parent e9595fab21
commit f28956194c
4 changed files with 89 additions and 0 deletions
@@ -16,6 +16,7 @@ type ContactFormProps = {
street: string | null;
postalCode: string | null;
city: string | null;
directoryOptIn: boolean;
};
};
@@ -30,6 +31,7 @@ export function ContactForm({ contact }: ContactFormProps) {
street: String(formData.get("street") ?? ""),
postalCode: String(formData.get("postalCode") ?? ""),
city: String(formData.get("city") ?? ""),
directoryOptIn: formData.get("directoryOptIn") === "on",
});
if (result.error) {
@@ -106,6 +108,22 @@ export function ContactForm({ contact }: ContactFormProps) {
</div>
</div>
<div className="flex items-center gap-2 mt-2">
<input
type="checkbox"
id="directoryOptIn"
name="directoryOptIn"
defaultChecked={contact.directoryOptIn}
className="rounded border-[var(--hairline)] accent-[var(--accent-deep)]"
/>
<Label
htmlFor="directoryOptIn"
className="font-normal cursor-pointer text-xs text-[var(--ink-soft)]"
>
Im Adressbuch anzeigen (Datenschutzerklärung)
</Label>
</div>
<div className="flex justify-end pt-1">
<Button type="submit" disabled={isPending}>
{isPending ? (