Improve version page

This commit is contained in:
Sakura Knoll
2022-07-21 20:16:23 +09:00 Unverified
parent f536718260
commit f798689316
22 changed files with 488 additions and 79 deletions
+5 -5
View File
@@ -30,11 +30,11 @@ const BossTable = ({ versionData, today }: BossTableProps) => {
</Box>
{versionData.superstring.map(([first, second], index) => {
const firstDuration = [
addDays(versionStartDate, index * 7),
addDays(versionStartDate, index * 7 + 2),
addDays(versionStartDate, index * 7 + 0),
addDays(versionStartDate, index * 7 + 3),
]
const secondDuration = [
addDays(versionStartDate, index * 7 + 3),
addDays(versionStartDate, index * 7 + 4),
addDays(versionStartDate, index * 7 + 6),
]
@@ -79,8 +79,8 @@ const BossTable = ({ versionData, today }: BossTableProps) => {
</Box>
{versionData.ma.map(([first, second, third], index) => {
const durations = [
addDays(versionStartDate, index * 7 + 3),
addDays(versionStartDate, (index + 1) * 7 + 2),
addDays(versionStartDate, index * 7 + 4),
addDays(versionStartDate, (index + 1) * 7 + 3),
]
const active =
today != null && today >= durations[0] && today <= durations[1]