get current project id and folder id

This commit is contained in:
Takeshi Kimata
2024-02-19 20:36:27 +09:00
parent 31c74ae769
commit 60d5b6f031
4 changed files with 50 additions and 7 deletions

View File

@@ -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>