Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@dnd-kit/utilities": "^3.2.2",
"@lexical/react": "^0.38.2",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-popover": "^1.1.15",
Expand Down
12 changes: 6 additions & 6 deletions src/app/(main)/project/update/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export default async function UpdateProject({params}:{params:Promise<{id:string}>}) {
const {id} = await params;
import { ProjectForm } from "@/features/project";

// id를 통해서 프로젝트 API 요청 작성
return (
export default async function UpdateProjectPage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
return (
<div>
{/* <ProjectForm id={id}/> */}
<ProjectForm projectId={id} />
</div>
);
);
}
15 changes: 4 additions & 11 deletions src/app/(main)/project/update/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import { ProjectForm } from "@/features/project";
import { redirect } from "next/navigation";


export default async function UpdateProject() {

// id를 통해서 프로젝트 API 요청 작성
return (
<div>
<ProjectForm />
</div>
);
}
export default function UpdatePage() {
redirect("/");
}
Loading
Loading