@@ -3,6 +3,7 @@ import {Button, CopyButton} from "@mantine/core";
33import { formatCurrency } from "../../../utilites/currency.ts" ;
44import { t } from "@lingui/macro" ;
55import { prettyDate } from "../../../utilites/dates.ts" ;
6+ import { EventDateRange } from "../EventDateRange" ;
67import QRCode from "react-qr-code" ;
78import { IconCopy , IconPrinter , IconLock , IconX } from "@tabler/icons-react" ;
89import { Address , Attendee , Event , Product } from "../../../types.ts" ;
@@ -32,6 +33,7 @@ export const AttendeeTicket = ({
3233 const ticketDesignSettings = event ?. settings ?. ticket_design_settings ;
3334 const accentColor = ticketDesignSettings ?. accent_color || '#6B46C1' ;
3435 const footerText = ticketDesignSettings ?. footer_text ;
36+ const dateDisplayMode = ticketDesignSettings ?. date_display_mode || 'START_DATE_TIME' ;
3537 const logoUrl = imageUrl ( 'TICKET_LOGO' , event ?. images ) ;
3638
3739 const ticketStyle = {
@@ -71,12 +73,16 @@ export const AttendeeTicket = ({
7173 < div className = { classes . contentLeft } >
7274 { /* Event Details */ }
7375 < div className = { classes . eventDetails } >
74- < div className = { classes . detailRow } >
75- < div className = { classes . detailLabel } > { t `Date & Time` } </ div >
76- < div className = { classes . detailValue } >
77- { prettyDate ( event . start_date , event . timezone , true ) }
76+ { dateDisplayMode !== 'HIDDEN' && (
77+ < div className = { classes . detailRow } >
78+ < div className = { classes . detailLabel } > { t `Date & Time` } </ div >
79+ < div className = { classes . detailValue } >
80+ { dateDisplayMode === 'DATE_RANGE'
81+ ? < EventDateRange event = { event } />
82+ : prettyDate ( event . start_date , event . timezone , true ) }
83+ </ div >
7884 </ div >
79- </ div >
85+ ) }
8086 { event ?. organizer ?. name && (
8187 < div className = { classes . detailRow } >
8288 < div className = { classes . detailLabel } > { t `Organizer` } </ div >
0 commit comments