- A little refactor cleanup

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-16 14:14:00 -05:00
parent a38611a584
commit 690e65df0b

View File

@@ -59,14 +59,10 @@ function ChatConversationListComponent({
</> </>
const cardExtra = <Badge count={item.messages_aggregate.aggregate.count || 0}/> const cardExtra = <Badge count={item.messages_aggregate.aggregate.count || 0}/>
const getCardStyle = () => { const getCardStyle = () =>
if (item.id === selectedConversation) { item.id === selectedConversation
return { ? { backgroundColor: 'rgba(128, 128, 128, 0.2)' }
backgroundColor: 'rgba(128, 128, 128, 0.2)' : { backgroundColor: index % 2 === 0 ? '#f0f2f5' : '#ffffff' };
}
}
return index % 2 === 0 ? {backgroundColor: '#f0f2f5'} : {backgroundColor: '#ffffff'};
}
return ( return (
<CellMeasurer <CellMeasurer