update mlb schedule

This commit is contained in:
2025-04-28 10:13:48 +02:00
parent c5a0cc89b6
commit d80a7e9fc7
6 changed files with 53 additions and 93 deletions

View File

@@ -62,8 +62,7 @@ type StatusBadgeProps = {
}
const StatusBadge = ({ status }: StatusBadgeProps) => {
const { variant, className } =
WEEK_CONFIG[status]?.badgeProps || DEFAULT_BADGE_PROPS
const { variant } = WEEK_CONFIG[status]?.badgeProps || DEFAULT_BADGE_PROPS
const text =
status === 'completed'
@@ -104,10 +103,12 @@ const WeekTab = ({ week, matches, status }: WeekTabProps) => {
}
const filteredMatches = useMemo(
() =>
matches.filter(
(m) => m.week === week || m.week === Number.parseInt(String(week))
),
[matches, week]
matches
.filter(
(m) => m.week === week || m.week === Number.parseInt(String(week))
)
.sort((a, b) => (a.datetime > b.datetime ? 1 : -1)),
[(matches, week)]
)
return (