mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +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,
|
||||
TrashIcon,
|
||||
} from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
@ -406,13 +407,15 @@ export function ProblemsetTable({ data }: ProblemTableProps) {
|
||||
</AlertDialogContent>
|
||||
</AlertDialog>
|
||||
)}
|
||||
<Button className="ml-auto" variant="outline">
|
||||
<PlusIcon
|
||||
className="-ms-1 opacity-60"
|
||||
size={16}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
Add Problem
|
||||
<Button className="ml-auto" variant="outline" asChild>
|
||||
<Link href="/dashboard/problemset/new">
|
||||
<PlusIcon
|
||||
className="-ms-1 opacity-60"
|
||||
size={16}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
Add Problem
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user