Add formal consent disclaimer when skipping confirmation email

Display a legal notice requiring the operator to certify they have
obtained verifiable prior consent (GDPR, CAN-SPAM) before bypassing
the confirmation email flow.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-19 22:19:30 +01:00
parent c5589793da
commit 19eb2f5d84

View File

@@ -104,15 +104,22 @@ export function NewCompliancePageSubscriberDialog(props: {
{...form.register("email")} {...form.register("email")}
placeholder={__("john@example.com")} placeholder={__("john@example.com")}
/> />
<div className="space-y-2">
<label className="flex items-center gap-2 cursor-pointer"> <label className="flex items-center gap-2 cursor-pointer">
<Checkbox <Checkbox
checked={form.watch("confirmed")} checked={form.watch("confirmed")}
onChange={checked => form.setValue("confirmed", checked)} onChange={checked => form.setValue("confirmed", checked)}
/> />
<span className="text-sm"> <span className="text-sm font-medium">
{__("Skip confirmation email (I already have consent)")} {__("Skip confirmation email")}
</span> </span>
</label> </label>
{form.watch("confirmed") && (
<p className="text-txt-secondary text-xs pl-6">
{__("By checking this box, you certify that you have obtained verifiable prior consent from this individual to receive these communications, in compliance with applicable data protection regulations (e.g. GDPR, CAN-SPAM). You accept full responsibility for demonstrating proof of consent if required.")}
</p>
)}
</div>
</DialogContent> </DialogContent>
<DialogFooter> <DialogFooter>
<Button type="submit" disabled={isCreating}> <Button type="submit" disabled={isCreating}>