mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-08 22:22:17 +02:00
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:
parent
34c8b4aa86
commit
04ea39f483
2 changed files with 0 additions and 2 deletions
|
|
@ -19,7 +19,6 @@ import { sidebarListItemClassName } from "./SidebarListItem";
|
||||||
interface ChatListItemProps {
|
interface ChatListItemProps {
|
||||||
name: string;
|
name: string;
|
||||||
isActive?: boolean;
|
isActive?: boolean;
|
||||||
isShared?: boolean;
|
|
||||||
archived?: boolean;
|
archived?: boolean;
|
||||||
dropdownOpen?: boolean;
|
dropdownOpen?: boolean;
|
||||||
onDropdownOpenChange?: (open: boolean) => void;
|
onDropdownOpenChange?: (open: boolean) => void;
|
||||||
|
|
|
||||||
|
|
@ -316,7 +316,6 @@ export function Sidebar({
|
||||||
key={chat.id}
|
key={chat.id}
|
||||||
name={chat.name}
|
name={chat.name}
|
||||||
isActive={chat.id === activeChatId}
|
isActive={chat.id === activeChatId}
|
||||||
isShared={chat.visibility === "SEARCH_SPACE"}
|
|
||||||
archived={chat.archived}
|
archived={chat.archived}
|
||||||
dropdownOpen={openDropdownChatId === chat.id}
|
dropdownOpen={openDropdownChatId === chat.id}
|
||||||
onDropdownOpenChange={(open) =>
|
onDropdownOpenChange={(open) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue