diff --git a/src/components/LBDashboard/Messaging/LBMessaging.jsx b/src/components/LBDashboard/Messaging/LBMessaging.jsx index 20c5d84b16..82dac7f8e7 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' }); @@ -213,14 +215,16 @@ export default function LBMessaging() { const renderContacts = () => { if (existingChats.length === 0) { - return

No chats available.

; + return

No chats available.

; } return existingChats.map(user => ( ) : ( -
-

Messages

+
+

+ Messages +

setShowContacts(prev => !prev)} />
)}
{showContacts ? searchResults.map(user => (
)}
-
+
{/* Contacts Section */} {!mobileView && (
{showContacts ? ( -
+
{ const query = e.target.value; @@ -415,36 +471,52 @@ export default function LBMessaging() {
) : ( -
-

Messages

+
+

+ Messages +

setShowContacts(prev => !prev)} />
)}
{showContacts ? searchResults.map(user => (