- 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 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
|
||||||
|
|||||||
Reference in New Issue
Block a user