Skip to content

Commit

Permalink
refactor: reverse year order
Browse files Browse the repository at this point in the history
  • Loading branch information
dada878 committed Nov 22, 2024
1 parent 762969a commit 2ae44d7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/cfp/(submission)/normal/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,16 @@ export default function Page() {
"2021",
"2022",
"2024",
].map((year) => (
<span key={year}>
<Link className="link" href={`https://sitcon.org/${year}`}>
{year}
</Link>
{<span>{year === "2024" ? "" : "、"}</span>}
</span>
))}
]
.toReversed()
.map((year, index) => (
<span key={year}>
<Link className="link" href={`https://sitcon.org/${year}`}>
{year}
</Link>
{<span>{index == 10 ? "" : "、"}</span>}
</span>
))}
)查看過去的議程。
</p>
<p className="leading-10">
Expand Down

0 comments on commit 2ae44d7

Please sign in to comment.