diff --git a/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/BackButton.tsx b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/BackButton.tsx new file mode 100644 index 0000000..8aad8ff --- /dev/null +++ b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/BackButton.tsx @@ -0,0 +1,30 @@ +"use client"; + +import { useRouter } from "next/navigation"; +import Image from "next/image"; +import BackIcon from "../../../../../../../public/icon/arrow_right_icon.svg"; + +export default function BackButton() { + const router = useRouter(); + + return ( +
+ +
+ ); +} diff --git a/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/DashboardEditSection.tsx b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/DashboardEditSection.tsx new file mode 100644 index 0000000..2938c06 --- /dev/null +++ b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/DashboardEditSection.tsx @@ -0,0 +1,22 @@ +"use client"; + +import Input from "@/components/common/input/Input"; +import Button from "@/components/common/button/Button"; + +export default function DashboardEditSection() { + return ( +
+
+
+ 대시보드 이름 +
+
+
+ +
+ +
+
+
+ ); +} diff --git a/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/InvitationSection.tsx b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/InvitationSection.tsx new file mode 100644 index 0000000..7b62e78 --- /dev/null +++ b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/InvitationSection.tsx @@ -0,0 +1,35 @@ +"use client"; + +import Pagination from "@/components/common/pagenation-button/PagenationButton"; + +export default function InvitationSection({ + id, + token, +}: { + id: number; + token: string; +}) { + // id 값과 token 값 사용하고 나서는 지워도 되는 코드들 + console.log(id); + console.log(token); + + return ( +
+
+

+ 초대 내역 +

+
+ 1 페이지 중 1 + { + console.log(`구성원 페이지 ${page}로 변경`); + }} + /> +
+
+
+ ); +} diff --git a/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/MemberSection.tsx b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/MemberSection.tsx new file mode 100644 index 0000000..f99d6b3 --- /dev/null +++ b/src/app/(after-login)/dashboard/[dashboardid]/edit/_components/MemberSection.tsx @@ -0,0 +1,35 @@ +"use client"; + +import Pagination from "@/components/common/pagenation-button/PagenationButton"; + +export default function MemberSection({ + id, + token, +}: { + id: number; + token: string; +}) { + // id 값과 token 값 사용하고 나서는 지워도 되는 코드들 + console.log(id); + console.log(token); + + return ( +
+
+

+ 구성원 +

+
+ 1 페이지 중 1 + { + console.log(`구성원 페이지 ${page}로 변경`); + }} + /> +
+
+
+ ); +} diff --git a/src/app/(after-login)/dashboard/[dashboardid]/edit/page.tsx b/src/app/(after-login)/dashboard/[dashboardid]/edit/page.tsx index f60bb04..cbd9d87 100644 --- a/src/app/(after-login)/dashboard/[dashboardid]/edit/page.tsx +++ b/src/app/(after-login)/dashboard/[dashboardid]/edit/page.tsx @@ -1,3 +1,25 @@ -export default function Page() { - return
/dashboard/dashboardid/edit
; +import { cookies } from "next/headers"; +import BackButton from "./_components/BackButton"; +import DashboardEditSection from "./_components/DashboardEditSection"; +import InvitationSection from "./_components/InvitationSection"; +import MemberSection from "./_components/MemberSection"; + +export default function Page({ params }: { params: { dashboardid: string } }) { + const dashboardId = Number(params.dashboardid); + const accessToken = cookies().get("accessToken")?.value ?? ""; + + return ( +
+
+
+ +
+ + + +
+
+
+
+ ); } diff --git a/src/app/(after-login)/mypage/page.tsx b/src/app/(after-login)/mypage/page.tsx index 8093b20..5afcb7d 100644 --- a/src/app/(after-login)/mypage/page.tsx +++ b/src/app/(after-login)/mypage/page.tsx @@ -4,7 +4,7 @@ import ProfileSection from "./_components/ProfileSection"; export default function Page() { return ( -
+