Skip to content

Commit

Permalink
fix: show time field
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentHardouin committed Oct 12, 2024
1 parent 271fe39 commit 82db7ca
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/infrastructure/adapters/PassAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,34 @@ class PassAdapter {
);

this.pass.primaryFields.push(
{
key: 'court',
label: 'court',
textAlignment: 'PKTextAlignmentLeft',
value: court,
},
);

this.pass.secondaryFields.push(
{
key: 'event_date',
label: 'date',
value: start,
ignoresTimeZone: false,
dateStyle: 'PKDateStyleMedium',
textAlignment: 'PKTextAlignmentLeft',
},
{
key: 'event_time',
label: 'time',
textAlignment: 'PKTextAlignmentRight',
timeStyle: 'PKDateStyleShort',
ignoresTimeZone: false,
value: start,
},
);

this.pass.secondaryFields.push(
{
key: 'court',
label: 'court',
value: court,
},
);

this.pass.auxiliaryFields.push({
this.pass.backFields.push({
key: 'code',
label: 'code',
value: code,
Expand Down

0 comments on commit 82db7ca

Please sign in to comment.