From 5f0835d88372695229a3ae73c01ca4dd08eb160e Mon Sep 17 00:00:00 2001 From: Yasir Ekinci Date: Thu, 28 Mar 2024 15:55:39 +0100 Subject: [PATCH] Revert "Revert "wrap in to avoid build warning"" This reverts commit 077713058e1e1e49b63e657cad5dc4d8b9141af9. --- src/components/chat/chat-list.tsx | 28 ++++++++++++++++------------ src/components/sidebar.tsx | 22 +++++++++++++--------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/src/components/chat/chat-list.tsx b/src/components/chat/chat-list.tsx index 940bb00..36a5c77 100644 --- a/src/components/chat/chat-list.tsx +++ b/src/components/chat/chat-list.tsx @@ -26,13 +26,15 @@ export default function ChatList({ return (
- AI + + AI +

How can I help you today?

@@ -69,11 +71,13 @@ export default function ChatList({ {message.role === "assistant" && (
- AI + + AI +
{/* Check if the message content contains a code block */} diff --git a/src/components/sidebar.tsx b/src/components/sidebar.tsx index 160ca34..f72c32b 100644 --- a/src/components/sidebar.tsx +++ b/src/components/sidebar.tsx @@ -20,7 +20,6 @@ import { import { DialogClose } from "@radix-ui/react-dialog"; import { ChatOptions } from "./chat/chat-options"; - interface SidebarProps { isCollapsed: boolean; messages: Message[]; @@ -154,13 +153,15 @@ export function Sidebar({ >
{!isCollapsed && !isMobile && ( - AI + + AI + )} New chat
@@ -178,7 +179,10 @@ export function Sidebar({

    {localChats[group].map(({ chatId, messages }, chatIndex) => ( -
  1. +