Skip to content

Commit d6a4a64

Browse files
committed
fix: 과제 폴더구조 수정 및 라우팅 추가
1 parent 9649031 commit d6a4a64

File tree

4 files changed

+7
-24
lines changed

4 files changed

+7
-24
lines changed

apps/admin/app/studies/[study]/assignments/[id]/@create/page.tsx renamed to apps/admin/app/studies/[study]/assignments/[id]/edit/page.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const Assignments = ({ params }: { params: { id: string } }) => {
5656
const headerStyle = css({
5757
width: "100%",
5858
display: "flex",
59+
alignItems: "top",
5960
justifyContent: "space-between",
6061
});
6162

apps/admin/app/studies/[study]/assignments/[id]/layout.tsx

-16
This file was deleted.

apps/admin/app/studies/[study]/assignments/[id]/@view/page.tsx renamed to apps/admin/app/studies/[study]/assignments/[id]/page.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { css } from "@styled-system/css";
22
import { Flex, styled } from "@styled-system/jsx";
33
import { Text } from "@wow-class/ui";
4+
import Link from "next/link";
45
import Button from "wowds-ui/Button";
56

67
const Assignments = ({ params }: { params: { id: string } }) => {
@@ -14,9 +15,11 @@ const Assignments = ({ params }: { params: { id: string } }) => {
1415
<Button size="sm" variant="outline">
1516
과제 휴강처리
1617
</Button>
17-
<Button size="sm" variant="outline">
18-
수정
19-
</Button>
18+
<Link href={`${params.id}/edit`}>
19+
<Button size="sm" variant="outline">
20+
수정
21+
</Button>
22+
</Link>
2023
</Flex>
2124
</styled.header>
2225
<Flex direction="column" gap="4rem">

apps/admin/app/studies/[study]/assignments/default.tsx

-5
This file was deleted.

0 commit comments

Comments
 (0)