-
Couldn't load subscription status.
- Fork 8
BRND template #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
BRND template #193
Conversation
7757c44 to
afb376d
Compare
| { | ||
| "title": "BRND sportcenter dagsprogram", | ||
| "icon": "", | ||
| "id": "01FRJPF4XATRN8PBZ35XN84PS6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important! The id of a new template should be a new ULID. This is the same as calendar template:
https://github.com/os2display/display-templates/blob/develop/src/calendar/calendar-config.json#L4
You can generate a new ULID with the following command (in API):
https://github.com/os2display/display-api-service/blob/develop/src/Command/GenerateUlid.php#L15
| </ContentItemsWrapper> | ||
| <ContentItemsWrapper className="schedule-rows"> | ||
| {bookings?.length > 0 && | ||
| getSortedBookings(bookings).map((entry) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why bind returnFragment to a variable and return it afterwards?
| getSortedBookings(bookings).map((entry) => { | |
| getSortedBookings(bookings).map((entry) => ( | |
| <Fragment> | |
| </Fragment> | |
| ) |
Link to ticket
Fixes os2display/display-api-service#309
Description
Template to show all todays BRND bookings for a sports center