mirror of
https://github.com/massbug/judge4c.git
synced 2026-10-15 15:17:31 +00:00
feat(problemset/table): wrap Add Problem button with Next.js Link
This commit is contained in:
@@ -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>
|
||||||
<PlusIcon
|
<Link href="/dashboard/problemset/new">
|
||||||
className="-ms-1 opacity-60"
|
<PlusIcon
|
||||||
size={16}
|
className="-ms-1 opacity-60"
|
||||||
aria-hidden="true"
|
size={16}
|
||||||
/>
|
aria-hidden="true"
|
||||||
Add Problem
|
/>
|
||||||
|
Add Problem
|
||||||
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user