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