mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(problemset/table): wrap Add Problem
button with Next.js Link
This commit is contained in:
parent
548f0b7184
commit
1875e98106
@ -16,6 +16,7 @@ import {
|
|||||||
PlusIcon,
|
PlusIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
|
import Link from "next/link";
|
||||||
import {
|
import {
|
||||||
Table,
|
Table,
|
||||||
TableBody,
|
TableBody,
|
||||||
@ -406,13 +407,15 @@ export function ProblemsetTable({ data }: ProblemTableProps) {
|
|||||||
</AlertDialogContent>
|
</AlertDialogContent>
|
||||||
</AlertDialog>
|
</AlertDialog>
|
||||||
)}
|
)}
|
||||||
<Button className="ml-auto" variant="outline">
|
<Button className="ml-auto" variant="outline" asChild>
|
||||||
|
<Link href="/dashboard/problemset/new">
|
||||||
<PlusIcon
|
<PlusIcon
|
||||||
className="-ms-1 opacity-60"
|
className="-ms-1 opacity-60"
|
||||||
size={16}
|
size={16}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
Add Problem
|
Add Problem
|
||||||
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user