From 9ec6bce9c94c49abbf44d699285a0e316d069199 Mon Sep 17 00:00:00 2001 From: zhenyi <434836402@qq.com> Date: Sat, 30 May 2026 14:59:49 +0800 Subject: [PATCH] fix: remove unused AnimatePresence import and sessions variable --- src/components/shell/personal-sidebar.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/shell/personal-sidebar.tsx b/src/components/shell/personal-sidebar.tsx index 0e928e0..3b73376 100644 --- a/src/components/shell/personal-sidebar.tsx +++ b/src/components/shell/personal-sidebar.tsx @@ -14,7 +14,7 @@ import { Bot, } from "lucide-react"; import { useState, useEffect, useCallback } from "react"; -import { motion, AnimatePresence } from "motion/react"; +import { motion } from "motion/react"; import { cn } from "@/lib/utils"; import NavShell from "./rail"; import { workspaceColor, workspaceInitial } from "./shared"; @@ -111,7 +111,7 @@ function AgentChatSidebar() { const navigate = useNavigate(); const location = useLocation(); const conversationId = location.pathname.split("/me/chat/")[1] || ""; - const { sessions, loading: sessionsLoading, sessionsRef, personalSessionIds } = usePersonalSessions(); + const { loading: sessionsLoading, sessionsRef, personalSessionIds } = usePersonalSessions(); const [conversations, setConversations] = useState([]); const [loading, setLoading] = useState(true); @@ -174,11 +174,10 @@ function AgentChatSidebar() { return (
- {/* Header */}
- AI Chats + Chats
- - {/* Conversation list */} {loading ? (
{Array.from({ length: SKELETON_COUNT }).map((_, i) => ( @@ -300,8 +297,8 @@ function PersonalSidebar() { ]; return ( -