diff --git a/src/app/(userpage)/layout.tsx b/src/app/(userpage)/layout.tsx
index f784426..9853a01 100644
--- a/src/app/(userpage)/layout.tsx
+++ b/src/app/(userpage)/layout.tsx
@@ -1,8 +1,3 @@
export default function UserLayout({ children }: { children: React.ReactNode }) {
- return (
-
- 여기가 레이아웃
- {children}
-
- );
+ return ;
}
diff --git a/src/app/(userpage)/mypage/page.tsx b/src/app/(userpage)/mypage/page.tsx
index c4548c7..e6bdf31 100644
--- a/src/app/(userpage)/mypage/page.tsx
+++ b/src/app/(userpage)/mypage/page.tsx
@@ -6,10 +6,11 @@ import cn from "@/utils/classNames";
import styles from "./MyPage.module.scss";
export default function MyPage() {
+ const userId = "2";
return (
MyPage
- 이동 부탁
+ 이동 부탁
);
}
diff --git a/src/app/(userpage)/otherpage/[userId]/OtherPage.module.scss b/src/app/(userpage)/otherpage/[userId]/OtherPage.module.scss
index e185a12..67a6eff 100644
--- a/src/app/(userpage)/otherpage/[userId]/OtherPage.module.scss
+++ b/src/app/(userpage)/otherpage/[userId]/OtherPage.module.scss
@@ -3,6 +3,7 @@
.container {
display: flex;
+ flex-direction: column;
align-items: center;
justify-content: center;
}
diff --git a/src/app/(userpage)/otherpage/[userId]/page.tsx b/src/app/(userpage)/otherpage/[userId]/page.tsx
index 5a86ae1..f8dd064 100644
--- a/src/app/(userpage)/otherpage/[userId]/page.tsx
+++ b/src/app/(userpage)/otherpage/[userId]/page.tsx
@@ -1,17 +1,18 @@
"use client";
-import { useSearchParams } from "next/navigation";
+import { useParams } from "next/navigation";
import React from "react";
import cn from "@/utils/classNames";
import styles from "./OtherPage.module.scss";
export default function OtherPage() {
- const userId = useSearchParams();
+ // userId를 받아오는 useParams function
+ const { userId } = useParams<{ userId: string }>();
return (
OtherPage test
- {userId}
+ userId: {userId}
);
}