Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #53 from Sports-day/feature/refactor-style
Browse files Browse the repository at this point in the history
Feature/refactor style
  • Loading branch information
testusuke authored May 21, 2024
2 parents ef0dde7 + 70da970 commit 84b915c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/league/table/leagueTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default async function LeagueTable(props: LeagueTableProps) {
<Stack
spacing={0}
direction={"row"}
overflow={"auto"}
>
{cells}
</Stack>
Expand Down
5 changes: 4 additions & 1 deletion components/match/matchList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export type MatchListProps = {
}

export default async function MatchList(props: MatchListProps) {
const components = props.matches.map((match) =>
const components = props.matches
// sort by date in ascending order
.sort((a, b) => new Date(a.startAt).getTime() - new Date(b.startAt).getTime())
.map((match) =>
<MatchCard
match={match}
key={match.id}
Expand Down

0 comments on commit 84b915c

Please sign in to comment.