From 9ad0f1dedcb72f3736caadb905d3be79079af81a Mon Sep 17 00:00:00 2001 From: JAEMOONLEE Date: Mon, 25 Sep 2023 09:23:14 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20UserProfile=20=EC=9A=B0=EC=84=A0=20?= =?UTF-8?q?=EC=BB=A4=EB=B0=8B!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Nav/Nav.tsx | 1 - components/RoomCard/RoomCard.tsx | 18 +++++++++++++----- pages/profile/index.tsx | 26 ++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 pages/profile/index.tsx diff --git a/components/Nav/Nav.tsx b/components/Nav/Nav.tsx index 9be37df..d82c91c 100644 --- a/components/Nav/Nav.tsx +++ b/components/Nav/Nav.tsx @@ -35,7 +35,6 @@ export default function Nav() {
{menus.map((menu, index) => { const IconComponent = menu.icon; - return (
void; } const UserInfo = ({ userInfo }: UserInfoProps) => { + const router = useRouter(); const age = formatAge(userInfo.year); + + const handleUserClick = () => { + router.push("/profile"); + } return (
- user + user
{userInfo.name}
@@ -39,9 +48,9 @@ const UserInfo = ({ userInfo }: UserInfoProps) => { ); }; -const Photo = ({ photos }: PhotoProps) => { +const Photo = ({ photos, onClick }: PhotoProps) => { return ( -
+
} - content={} + content={} footer={