Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7246 | Rev 7248 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7246 Rev 7247
Línea 87... Línea 87...
87
  return (
87
  return (
88
    <ContactList>
88
    <ContactList>
89
      {!contacts.length ? (
89
      {!contacts.length ? (
90
        <EmptySection message={labels.datatable_szerorecords} />
90
        <EmptySection message={labels.datatable_szerorecords} />
91
      ) : (
91
      ) : (
92
        contacts.map((contact) => (
92
        contacts.map((contact) => {
-
 
93
          let isCurrent = false
-
 
94
 
-
 
95
          if (currentConversation) {
-
 
96
            if (currentConversation.id === contact.id) isCurrent = true
93
          <li key={contact.id || contact.uuid}>
97
            if (currentConversation.uuid === contact.uuid) isCurrent = true
94
            <List.Item
98
          }
-
 
99
 
95
              contact={contact}
100
          return (
96
              onClick={onChange}
101
            <li key={contact.id || contact.uuid}>
97
              isCurrent={
102
              <List.Item
98
                (currentConversation &&
103
                contact={contact}
99
                  currentConversation.id === contact.id) ||
104
                onClick={onChange}
100
                currentConversation.uuid === contact.uuid
105
                isCurrent={isCurrent}
101
              }
106
              />
102
            />
107
            </li>
103
          </li>
108
          )
104
        ))
109
        })
105
      )}
110
      )}
106
    </ContactList>
111
    </ContactList>
107
  )
112
  )
108
}
113
}