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.
This commit is contained in:
Anish Sarkar 2026-07-07 11:05:35 +05:30
parent 34c8b4aa86
commit 04ea39f483
2 changed files with 0 additions and 2 deletions

View file

@ -19,7 +19,6 @@ import { sidebarListItemClassName } from "./SidebarListItem";
interface ChatListItemProps {
name: string;
isActive?: boolean;
isShared?: boolean;
archived?: boolean;
dropdownOpen?: boolean;
onDropdownOpenChange?: (open: boolean) => void;

View file

@ -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) =>