Skip to content

Commit b8b6cf0

Browse files
committed
4565: Applied coding standards
1 parent 75327e5 commit b8b6cf0

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

assets/shared/templates/calendar/calendar-single-booking.jsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ import {
4646
* @returns {React.JSX.Element} - The component.
4747
*/
4848
function CalendarSingleBooking({
49-
content,
50-
calendarEvents,
51-
templateClasses = [],
52-
templateRootStyle = {},
53-
getTitle,
54-
slide,
55-
run,
56-
}) {
49+
content,
50+
calendarEvents,
51+
templateClasses = [],
52+
templateRootStyle = {},
53+
getTitle,
54+
slide,
55+
run,
56+
}) {
5757
const {
5858
title = "",
5959
subTitle = null,
@@ -118,7 +118,7 @@ function CalendarSingleBooking({
118118
to: option.to,
119119
durationMinutes: option.durationMinutes,
120120
};
121-
})
121+
}),
122122
);
123123
})
124124
.finally(() => {
@@ -234,14 +234,14 @@ function CalendarSingleBooking({
234234

235235
const currentEvents = calendarEvents.filter(
236236
(cal) =>
237-
cal.startTime <= currentTime.unix() && cal.endTime >= currentTime.unix()
237+
cal.startTime <= currentTime.unix() && cal.endTime >= currentTime.unix(),
238238
);
239239

240240
const futureEvents = calendarEvents.filter(
241241
(el) =>
242242
!currentEvents.includes(el) &&
243243
el.endTime > dayjs().unix() &&
244-
el.endTime <= dayjs().endOf("day").unix()
244+
el.endTime <= dayjs().endOf("day").unix(),
245245
);
246246

247247
const roomInUse = bookingResult !== null || currentEvents.length > 0;
@@ -260,7 +260,7 @@ function CalendarSingleBooking({
260260
return (
261261
<Wrapper
262262
className={`template-calendar calendar-single-booking ${templateClasses.join(
263-
" "
263+
" ",
264264
)}
265265
${mediaContain ? "media-contain" : ""}`}
266266
style={templateRootStyle}

assets/shared/templates/news-feed.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ function renderSlide(slide, run, slideDone) {
3232
);
3333
}
3434

35-
3635
/**
3736
* News feed slide.
3837
*

0 commit comments

Comments
 (0)