diff --git a/solvway-admin-portal/app/components/registration/QrCodeItem.tsx b/solvway-admin-portal/app/components/registration/QrCodeItem.tsx index e476011..20828a3 100644 --- a/solvway-admin-portal/app/components/registration/QrCodeItem.tsx +++ b/solvway-admin-portal/app/components/registration/QrCodeItem.tsx @@ -6,6 +6,7 @@ import { Copy, Download, Maximize2, Share2 } from "lucide-react"; import { Button } from "@/app/components/ui/button"; import { Dialog, DialogContent } from "@/app/components/ui/dialog"; import { Switch } from "@/app/components/ui/switch"; +import { cn } from "@/app/lib/utils"; import { useT } from "@/app/lib/i18n/MessagesProvider"; const slug = (s: string) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, ""); @@ -13,6 +14,7 @@ const slug = (s: string) => s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace( /** One registration code: QR, link, copy, PNG download and (when onToggle is given) an on/off switch. */ export function QrCodeItem({ label, + className, eventName, fileLabel, token, @@ -21,7 +23,9 @@ export function QrCodeItem({ prefix = "r", personal = false, }: { - label: string; + /** Heading above the link; omit when the surrounding card already names the event. */ + label?: string; + className?: string; eventName: string; /** Member name for the download file name; omit for the event code. */ fileLabel?: string; @@ -71,11 +75,11 @@ export function QrCodeItem({ } return ( -
+
-

{label}

+ {label &&

{label}

}

{link}