mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
feat(problemset): add clickable links for problem IDs and titles
This commit is contained in:
parent
134046ff5a
commit
9a04d83f9e
@ -1,3 +1,4 @@
|
|||||||
|
import Link from "next/link";
|
||||||
import {
|
import {
|
||||||
Table,
|
Table,
|
||||||
TableBody,
|
TableBody,
|
||||||
@ -29,9 +30,25 @@ export default async function ProblemsetPage() {
|
|||||||
key={problem.id}
|
key={problem.id}
|
||||||
className="odd:bg-muted/50 odd:hover:bg-muted/50 border-none hover:bg-transparent"
|
className="odd:bg-muted/50 odd:hover:bg-muted/50 border-none hover:bg-transparent"
|
||||||
>
|
>
|
||||||
<TableCell className="py-2.5">{problem.id}</TableCell>
|
<TableCell className="py-2.5">
|
||||||
<TableCell className="py-2.5">{problem.title}</TableCell>
|
<Link
|
||||||
<TableCell className="py-2.5">{problem.difficulty}</TableCell>
|
href={`/problems/${problem.id}`}
|
||||||
|
className="hover:text-blue-500"
|
||||||
|
>
|
||||||
|
{problem.id}
|
||||||
|
</Link>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell className="py-2.5">
|
||||||
|
<Link
|
||||||
|
href={`/problems/${problem.id}`}
|
||||||
|
className="hover:text-blue-500"
|
||||||
|
>
|
||||||
|
{problem.title}
|
||||||
|
</Link>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell className="py-2.5">
|
||||||
|
{problem.difficulty}
|
||||||
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
))}
|
))}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
|
Loading…
Reference in New Issue
Block a user