diff --git a/src/new-frontend/src/components/Sidebar.tsx b/src/new-frontend/src/components/Sidebar.tsx index d2f2e83334..a67623076f 100644 --- a/src/new-frontend/src/components/Sidebar.tsx +++ b/src/new-frontend/src/components/Sidebar.tsx @@ -23,7 +23,7 @@ const Sidebar: React.FC = () => { Logo - + diff --git a/src/new-frontend/src/components/SidebarItems.tsx b/src/new-frontend/src/components/SidebarItems.tsx index 8970410d8c..7790111f80 100644 --- a/src/new-frontend/src/components/SidebarItems.tsx +++ b/src/new-frontend/src/components/SidebarItems.tsx @@ -12,12 +12,16 @@ const items = [ { icon: FiLogOut, title: 'Log out' } ]; -const SidebarItems: React.FC = () => { +interface SidebarItemsProps { + onClose?: () => void; +} + +const SidebarItems: React.FC = ({ onClose }) => { const listItems = items.map((item) => ( + }} onClick={onClose}>