Skip to content

Commit

Permalink
refactor(frontend): clean up sidebar component by removing unused imp…
Browse files Browse the repository at this point in the history
…orts and props
  • Loading branch information
NarwhalChen committed Mar 5, 2025
1 parent 6b7cd01 commit 356125e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions frontend/src/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import {
SidebarRail,
SidebarFooter,
} from './ui/sidebar';
import { cn } from '@/lib/utils';
import { ProjectContext } from './chat/code-engine/project-context';
import { useRouter } from 'next/navigation';

interface SidebarProps {
setIsModalOpen: (value: boolean) => void; // Parent setter to update collapse state
Expand All @@ -41,9 +39,6 @@ export function ChatSideBar({
setIsModalOpen,
isCollapsed,
setIsCollapsed,
isMobile,
chatListUpdated,
setChatListUpdated,
chats,
loading,
error,
Expand All @@ -60,7 +55,6 @@ export function ChatSideBar({
const event = new Event(EventEnum.NEW_CHAT);
window.dispatchEvent(event);
}, []);
const router = useRouter();

if (loading) return <SidebarSkeleton />;
if (error) {
Expand Down

0 comments on commit 356125e

Please sign in to comment.