get current project id and folder id
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
import { Button } from "@nextui-org/react";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
export default function Page() {
|
||||
export default function Page({ params }: { params: { projectId: string, folderId: string } }) {
|
||||
const router = useRouter();
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
className="ms-5 mt-3"
|
||||
onClick={() => router.push(`/projects/1/folders/1/cases/`)}
|
||||
onClick={() => router.push(`/projects/${params.projectId}/folders/${params.folderId}/cases/`)}
|
||||
>
|
||||
Back
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user