Change color of last message text if unread

This commit is contained in:
Justin 2022-09-23 09:08:46 -04:00
parent 31b1f3ec97
commit 7335a3a0d3

View file

@ -98,7 +98,7 @@ const ChatListItem: React.FC<IChatListItemInterface> = ({ chat, chatSilence, onC
align='left' align='left'
size='sm' size='sm'
weight='medium' weight='medium'
theme='muted' theme={chat.last_message.unread ? 'default' : 'muted'}
truncate truncate
className='w-full h-5 truncate-child pointer-events-none' className='w-full h-5 truncate-child pointer-events-none'
data-testid='chat-last-message' data-testid='chat-last-message'