- A little refactor cleanup
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -59,14 +59,10 @@ function ChatConversationListComponent({
|
||||
</>
|
||||
const cardExtra = <Badge count={item.messages_aggregate.aggregate.count || 0}/>
|
||||
|
||||
const getCardStyle = () => {
|
||||
if (item.id === selectedConversation) {
|
||||
return {
|
||||
backgroundColor: 'rgba(128, 128, 128, 0.2)'
|
||||
}
|
||||
}
|
||||
return index % 2 === 0 ? {backgroundColor: '#f0f2f5'} : {backgroundColor: '#ffffff'};
|
||||
}
|
||||
const getCardStyle = () =>
|
||||
item.id === selectedConversation
|
||||
? { backgroundColor: 'rgba(128, 128, 128, 0.2)' }
|
||||
: { backgroundColor: index % 2 === 0 ? '#f0f2f5' : '#ffffff' };
|
||||
|
||||
return (
|
||||
<CellMeasurer
|
||||
|
||||
Reference in New Issue
Block a user