Skip to content

Commit 356125e

Browse files
committed
refactor(frontend): clean up sidebar component by removing unused imports and props
1 parent 6b7cd01 commit 356125e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

frontend/src/components/sidebar.tsx

-6
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ import {
1919
SidebarRail,
2020
SidebarFooter,
2121
} from './ui/sidebar';
22-
import { cn } from '@/lib/utils';
2322
import { ProjectContext } from './chat/code-engine/project-context';
24-
import { useRouter } from 'next/navigation';
2523

2624
interface SidebarProps {
2725
setIsModalOpen: (value: boolean) => void; // Parent setter to update collapse state
@@ -41,9 +39,6 @@ export function ChatSideBar({
4139
setIsModalOpen,
4240
isCollapsed,
4341
setIsCollapsed,
44-
isMobile,
45-
chatListUpdated,
46-
setChatListUpdated,
4742
chats,
4843
loading,
4944
error,
@@ -60,7 +55,6 @@ export function ChatSideBar({
6055
const event = new Event(EventEnum.NEW_CHAT);
6156
window.dispatchEvent(event);
6257
}, []);
63-
const router = useRouter();
6458

6559
if (loading) return <SidebarSkeleton />;
6660
if (error) {

0 commit comments

Comments
 (0)