diff --git a/apps/admin/app/studies/[study]/assignments/[id]/@create/page.tsx b/apps/admin/app/studies/[study]/assignments/[id]/edit/page.tsx similarity index 98% rename from apps/admin/app/studies/[study]/assignments/[id]/@create/page.tsx rename to apps/admin/app/studies/[study]/assignments/[id]/edit/page.tsx index a78f0231..49859922 100644 --- a/apps/admin/app/studies/[study]/assignments/[id]/@create/page.tsx +++ b/apps/admin/app/studies/[study]/assignments/[id]/edit/page.tsx @@ -56,6 +56,7 @@ const Assignments = ({ params }: { params: { id: string } }) => { const headerStyle = css({ width: "100%", display: "flex", + alignItems: "top", justifyContent: "space-between", }); diff --git a/apps/admin/app/studies/[study]/assignments/[id]/layout.tsx b/apps/admin/app/studies/[study]/assignments/[id]/layout.tsx deleted file mode 100644 index 4100852e..00000000 --- a/apps/admin/app/studies/[study]/assignments/[id]/layout.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import type { ReactNode } from "react"; - -const AssignmentLayout = ({ - create, - view, -}: { - create: ReactNode; - view: ReactNode; -}) => { - // TODO: 스터디 과제 상세 조회 - const isRegistered = true; - - return <>{isRegistered ? view : create}; -}; - -export default AssignmentLayout; diff --git a/apps/admin/app/studies/[study]/assignments/[id]/@view/page.tsx b/apps/admin/app/studies/[study]/assignments/[id]/page.tsx similarity index 87% rename from apps/admin/app/studies/[study]/assignments/[id]/@view/page.tsx rename to apps/admin/app/studies/[study]/assignments/[id]/page.tsx index 2e9082e7..07373cea 100644 --- a/apps/admin/app/studies/[study]/assignments/[id]/@view/page.tsx +++ b/apps/admin/app/studies/[study]/assignments/[id]/page.tsx @@ -1,6 +1,7 @@ import { css } from "@styled-system/css"; import { Flex, styled } from "@styled-system/jsx"; import { Text } from "@wow-class/ui"; +import Link from "next/link"; import Button from "wowds-ui/Button"; const Assignments = ({ params }: { params: { id: string } }) => { @@ -14,9 +15,11 @@ const Assignments = ({ params }: { params: { id: string } }) => { - + + + diff --git a/apps/admin/app/studies/[study]/assignments/default.tsx b/apps/admin/app/studies/[study]/assignments/default.tsx deleted file mode 100644 index 395785b9..00000000 --- a/apps/admin/app/studies/[study]/assignments/default.tsx +++ /dev/null @@ -1,5 +0,0 @@ -const Default = () => { - return null; -}; - -export default Default;