From 04ea39f4833ad26da67351066e4e237f46417bbf Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 7 Jul 2026 11:05:35 +0530 Subject: [PATCH] refactor(sidebar): remove isShared prop from ChatListItem and Sidebar components - Removed the isShared prop from ChatListItemProps interface and its usage in the Sidebar component to simplify the code and improve clarity. --- surfsense_web/components/layout/ui/sidebar/ChatListItem.tsx | 1 - surfsense_web/components/layout/ui/sidebar/Sidebar.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/surfsense_web/components/layout/ui/sidebar/ChatListItem.tsx b/surfsense_web/components/layout/ui/sidebar/ChatListItem.tsx index a027cfb9c..e39075443 100644 --- a/surfsense_web/components/layout/ui/sidebar/ChatListItem.tsx +++ b/surfsense_web/components/layout/ui/sidebar/ChatListItem.tsx @@ -19,7 +19,6 @@ import { sidebarListItemClassName } from "./SidebarListItem"; interface ChatListItemProps { name: string; isActive?: boolean; - isShared?: boolean; archived?: boolean; dropdownOpen?: boolean; onDropdownOpenChange?: (open: boolean) => void; diff --git a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx index 016085f5a..35746acf1 100644 --- a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx @@ -316,7 +316,6 @@ export function Sidebar({ key={chat.id} name={chat.name} isActive={chat.id === activeChatId} - isShared={chat.visibility === "SEARCH_SPACE"} archived={chat.archived} dropdownOpen={openDropdownChatId === chat.id} onDropdownOpenChange={(open) =>