From c711b77d7d27ad8fc9273b2cc8d63ad458c602c0 Mon Sep 17 00:00:00 2001 From: hamo-o Date: Thu, 15 Aug 2024 04:54:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B3=BC=EC=A0=9C=20=ED=8F=B4=EB=8D=94?= =?UTF-8?q?=EA=B5=AC=EC=A1=B0=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20=EB=9D=BC?= =?UTF-8?q?=EC=9A=B0=ED=8C=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assignments/[id]/{@create => edit}/page.tsx | 1 + .../studies/[study]/assignments/[id]/layout.tsx | 16 ---------------- .../assignments/[id]/{@view => }/page.tsx | 9 ++++++--- .../app/studies/[study]/assignments/default.tsx | 5 ----- 4 files changed, 7 insertions(+), 24 deletions(-) rename apps/admin/app/studies/[study]/assignments/[id]/{@create => edit}/page.tsx (98%) delete mode 100644 apps/admin/app/studies/[study]/assignments/[id]/layout.tsx rename apps/admin/app/studies/[study]/assignments/[id]/{@view => }/page.tsx (87%) delete mode 100644 apps/admin/app/studies/[study]/assignments/default.tsx 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;