Skip to content

Commit dc5f1dc

Browse files
committed
Apply coding standards
1 parent e08bce7 commit dc5f1dc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/calendar/calendar-single-booking-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const renderFutureEvents = (eventsToRender, getTitle) => {
156156
if (eventsToRender.length > 0) {
157157
eventsToRender
158158
.filter(
159-
(e) => e.endTime > now.unix() && e.endTime <= now.endOf("day").unix(),
159+
(e) => e.endTime > now.unix() && e.endTime <= now.endOf("day").unix()
160160
)
161161
.forEach((event) => {
162162
if (elements.length < 3) {
@@ -168,7 +168,7 @@ const renderFutureEvents = (eventsToRender, getTitle) => {
168168
{renderTimeOfDayFromUnixTimestamp(event.endTime)}
169169
</Meta>
170170
{getTitle(event.title)}
171-
</ContentItem>,
171+
</ContentItem>
172172
);
173173
}
174174
});

src/calendar/calendar-single-booking.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function CalendarSingleBooking({
110110
to: option.to,
111111
durationMinutes: option.durationMinutes,
112112
};
113-
}),
113+
})
114114
);
115115
})
116116
.finally(() => {
@@ -215,11 +215,11 @@ function CalendarSingleBooking({
215215

216216
const currentEvents = calendarEvents.filter(
217217
(cal) =>
218-
cal.startTime <= currentTime.unix() && cal.endTime >= currentTime.unix(),
218+
cal.startTime <= currentTime.unix() && cal.endTime >= currentTime.unix()
219219
);
220220

221221
const futureEvents = calendarEvents.filter(
222-
(el) => !currentEvents.includes(el),
222+
(el) => !currentEvents.includes(el)
223223
);
224224

225225
const roomInUse = currentEvents.length > 0;
@@ -238,7 +238,7 @@ function CalendarSingleBooking({
238238
return (
239239
<Wrapper
240240
className={`template-calendar calendar-single-booking ${templateClasses.join(
241-
" ",
241+
" "
242242
)}
243243
${mediaContain ? "media-contain" : ""}`}
244244
style={templateRootStyle}
@@ -404,7 +404,7 @@ CalendarSingleBooking.propTypes = {
404404
endTime: PropTypes.number,
405405
resourceTitle: PropTypes.string,
406406
resourceId: PropTypes.string,
407-
}),
407+
})
408408
).isRequired,
409409
content: PropTypes.shape({
410410
title: PropTypes.string,

0 commit comments

Comments
 (0)