Compare commits
2 Commits
a3f055619e
...
c2fa9b0e4e
| Author | SHA1 | Date | |
|---|---|---|---|
| c2fa9b0e4e | |||
| 9acb0ffed4 |
@@ -1,5 +1,9 @@
|
||||
name: Build Backend
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: sh
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@@ -9,9 +13,7 @@ jobs:
|
||||
build:
|
||||
runs-on: host
|
||||
steps:
|
||||
|
||||
- name: Install Git
|
||||
shell: sh
|
||||
run: apk add --no-cache git
|
||||
|
||||
- name: Checkout
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
name: Build Frontend
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: sh
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
|
||||
@@ -80,12 +80,12 @@ const Timetable = ({ from_date, to_date, day_start, day_end }: TimetableProps) =
|
||||
const groups = [];
|
||||
for (let i = 0; i < activeDays.length; i += 3) {
|
||||
groups.push({
|
||||
label: `${formatDayLabel(activeDays[i])} - ${formatDayLabel(activeDays[Math.min(i + 2, activeDays.length - 1)])}`,
|
||||
label: `${formatDayLabel(activeDays[Math.min(i + 2, activeDays.length - 1)])} - ${formatDayLabel(activeDays[i])}`,
|
||||
startIndex: i,
|
||||
});
|
||||
}
|
||||
return {
|
||||
visibleDays: activeDays.slice(indexInActiveDays, indexInActiveDays + 3),
|
||||
visibleDays: activeDays.slice(indexInActiveDays, indexInActiveDays + 3).reverse(),
|
||||
tabGroups: groups,
|
||||
};
|
||||
}
|
||||
@@ -96,7 +96,7 @@ const Timetable = ({ from_date, to_date, day_start, day_end }: TimetableProps) =
|
||||
startIndex: idx,
|
||||
}));
|
||||
return {
|
||||
visibleDays: activeDays.slice(indexInActiveDays, indexInActiveDays + 1),
|
||||
visibleDays: activeDays.slice(indexInActiveDays, indexInActiveDays + 1).reverse(),
|
||||
tabGroups: groups,
|
||||
};
|
||||
}, [tier, days, reversedDays, selectedDayIndex]);
|
||||
|
||||
Reference in New Issue
Block a user