diff --git a/src/components/navigation/Navigation.tsx b/src/components/navigation/Navigation.tsx index 3efc934..2042ac2 100644 --- a/src/components/navigation/Navigation.tsx +++ b/src/components/navigation/Navigation.tsx @@ -35,6 +35,10 @@ const itemVariants: Variants = { const Navigation: React.FC = () => { const [show, setShow] = useState(false); const navigate = useNavigate(); + const handleNavLinkClick = (path: string) => { + setShow(false); + navigate(path); + }; return ( @@ -48,16 +52,16 @@ const Navigation: React.FC = () => { - navigate("/booth")}>부스 별 지도 + handleNavLinkClick("/booth")}>부스 별 지도 - navigate("/guests")}>Special Guest + handleNavLinkClick("/guests")}>Special Guest - navigate("/timetable")}>이벤트 일정 + handleNavLinkClick("/timetable")}>이벤트 일정 - navigate("/contributors")}>만든이들 + handleNavLinkClick("/contributors")}>만든이들