mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
feat(problemset): display sequential index instead of database id
This commit is contained in:
parent
e5ba5dd51a
commit
107f5d6670
@ -49,7 +49,7 @@ export default async function ProblemsetPage() {
|
||||
</TableHeader>
|
||||
<tbody aria-hidden="true" className="table-row h-2"></tbody>
|
||||
<TableBody className="[&_td:first-child]:rounded-l-lg [&_td:last-child]:rounded-r-lg">
|
||||
{problems.map((problem) => (
|
||||
{problems.map((problem, index) => (
|
||||
<TableRow
|
||||
key={problem.id}
|
||||
className="odd:bg-muted/50 odd:hover:bg-muted/50 border-none hover:bg-transparent"
|
||||
@ -59,7 +59,7 @@ export default async function ProblemsetPage() {
|
||||
href={`/problems/${problem.id}`}
|
||||
className="hover:text-blue-500"
|
||||
>
|
||||
{problem.id}
|
||||
{index + 1}
|
||||
</Link>
|
||||
</TableCell>
|
||||
<TableCell className="py-2.5">
|
||||
|
Loading…
Reference in New Issue
Block a user