From 599bcdd320cf99025b31d39e4a055f5804de41c5 Mon Sep 17 00:00:00 2001 From: ktutak1337 Date: Mon, 10 Jun 2024 08:21:05 +0200 Subject: [PATCH] Refractor(WEB): Code refractor and cleanup --- .../StellarChat.Client.Web/Components/Chat/ChatMessage.razor | 5 ----- .../Components/{Chat => Shared}/Drawer.razor | 0 2 files changed, 5 deletions(-) rename src/Client/StellarChat.Client.Web/Components/{Chat => Shared}/Drawer.razor (100%) diff --git a/src/Client/StellarChat.Client.Web/Components/Chat/ChatMessage.razor b/src/Client/StellarChat.Client.Web/Components/Chat/ChatMessage.razor index 749a0aa..09a1eca 100644 --- a/src/Client/StellarChat.Client.Web/Components/Chat/ChatMessage.razor +++ b/src/Client/StellarChat.Client.Web/Components/Chat/ChatMessage.razor @@ -4,17 +4,12 @@
- -@* TODO: Implement logic to display the correct avatar based on whether the author is a user or a bot. - Use the avatar image URL from the application state. *@ -
- @* TODO: temp solution *@ @(Message?.Author == "bot" ? _chatState.AssignedAssistant?.Name : @_chatState.UserName) @Message?.Timestamp.ToString("M/d/yyyy 'at' h:mm:ss tt")
diff --git a/src/Client/StellarChat.Client.Web/Components/Chat/Drawer.razor b/src/Client/StellarChat.Client.Web/Components/Shared/Drawer.razor similarity index 100% rename from src/Client/StellarChat.Client.Web/Components/Chat/Drawer.razor rename to src/Client/StellarChat.Client.Web/Components/Shared/Drawer.razor