From 97271fe969f66beb3b84b6c7b015b3acbf577795 Mon Sep 17 00:00:00 2001 From: Noemi Blazquez Date: Thu, 10 Oct 2024 12:38:21 +0200 Subject: [PATCH] Adds theme ligth in chatbot menu --- .../chatbot/components/Navbar/ChatHistory.tsx | 8 ++- .../chatbot/components/Navbar/Navbar.tsx | 61 +++++++++---------- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/packages/protolib/src/components/chatbot/components/Navbar/ChatHistory.tsx b/packages/protolib/src/components/chatbot/components/Navbar/ChatHistory.tsx index 36399aaea..b13266b94 100644 --- a/packages/protolib/src/components/chatbot/components/Navbar/ChatHistory.tsx +++ b/packages/protolib/src/components/chatbot/components/Navbar/ChatHistory.tsx @@ -5,14 +5,16 @@ export default function ChatHistory() { const chatsHistory = useChat(selectChatsHistory); return ( -
+
{Object.keys(chatsHistory).length > 0 && Object.keys(chatsHistory) .sort((a, b) => priority.indexOf(a) - priority.indexOf(b)) .map((month) => { return (
-

{month}

+

+ {month} +

{chatsHistory[month].map((chatId, i) => ( ))} @@ -21,7 +23,7 @@ export default function ChatHistory() { })} {Object.keys(chatsHistory).length === 0 && (
-

No chats yet

+

No chats yet

)}
diff --git a/packages/protolib/src/components/chatbot/components/Navbar/Navbar.tsx b/packages/protolib/src/components/chatbot/components/Navbar/Navbar.tsx index b23582499..e2029ed5f 100644 --- a/packages/protolib/src/components/chatbot/components/Navbar/Navbar.tsx +++ b/packages/protolib/src/components/chatbot/components/Navbar/Navbar.tsx @@ -48,20 +48,27 @@ export default function Navbar({ <>