Skip to content

Commit

Permalink
feat: 사이드바 리스트 아이템을 클릭했을 때 사이드바가 닫히는 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ImxYJL committed Jul 27, 2024
1 parent c0923c1 commit e9719ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/layouts/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Sidebar = ({ closeSidebar }: SidebarProps) => {
<S.MenuList>
{menuItems.map((item) => (
<S.MenuItem key={item.path} selected={location.pathname === item.path}>
<Link to={item.path}>{item.label}</Link>
<Link to={item.path} onClick={closeSidebar}>{item.label}</Link>
</S.MenuItem>
))}
</S.MenuList>
Expand Down

0 comments on commit e9719ea

Please sign in to comment.