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={