From 62507872e88e47790b705905fb37d142af6f8da9 Mon Sep 17 00:00:00 2001 From: sircarmart Date: Sat, 16 Aug 2025 11:07:54 -0700 Subject: [PATCH 1/7] add dark mode backgrounds --- .../LBDashboard/Messaging/LBMessaging.jsx | 78 ++++++++++++++----- .../Messaging/LBMessaging.module.css | 21 +++++ 2 files changed, 79 insertions(+), 20 deletions(-) diff --git a/src/components/LBDashboard/Messaging/LBMessaging.jsx b/src/components/LBDashboard/Messaging/LBMessaging.jsx index 20c5d84b16..294f093d9e 100644 --- a/src/components/LBDashboard/Messaging/LBMessaging.jsx +++ b/src/components/LBDashboard/Messaging/LBMessaging.jsx @@ -42,6 +42,8 @@ export default function LBMessaging() { const existingChats = useSelector(state => state.messages.existingChats); const { messages, loading: messagesLoading } = messagesState; + const darkMode = useSelector(state => state.theme.darkMode); + useEffect(() => { if (messageEndRef.current) { messageEndRef.current.scrollIntoView({ behavior: 'smooth' }); @@ -220,7 +222,7 @@ export default function LBMessaging() { ) : ( -
+

Messages

)}
{showContacts ? searchResults.map(user => (
)}
-
+
{/* Contacts Section */} {!mobileView && (
{showContacts ? ( -
+
{ const query = e.target.value; @@ -425,7 +445,11 @@ export default function LBMessaging() {
) : ( -
+

Messages

updateSelection(user)} > -
+
-
+
{selectedUser.userId ? ( renderChatMessages() ) : (

Select a user to start chatting

)}
-
+