Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2989 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2989 Rev 3055
Línea 16... Línea 16...
16
  const [groups, setGroups] = useState([]);
16
  const [groups, setGroups] = useState([]);
17
  const [activeChats, setActiveChats] = useState([]);
17
  const [activeChats, setActiveChats] = useState([]);
18
  const [isChatOpen, setIsChatOpen] = useState(false);
18
  const [isChatOpen, setIsChatOpen] = useState(false);
19
  const [isMuted, setIsMuted] = useState(false);
19
  const [isMuted, setIsMuted] = useState(false);
20
  const [activeTab, setActiveTab] = useState("user");
20
  const [activeTab, setActiveTab] = useState("user");
21
  const defaultChatInterval = 1500;
-
 
22
  const [chatInterval, setChatInterval] = useState(defaultChatInterval);
-
 
23
  const [search, setSearch] = useState('');
21
  const [search, setSearch] = useState('');
24
  const [loading, setLoading] = useState(false);
22
  const [loading, setLoading] = useState(false);
Línea 25... Línea 23...
25
 
23
 
26
  const filtredContacts = contacts.filter(({ name }) => name.toLowerCase().includes(search.toLowerCase()))
24
  const filtredContacts = contacts.filter(({ name }) => name.toLowerCase().includes(search.toLowerCase()))
Línea 27... Línea -...
27
  const filtredGroups = groups.filter(({ name }) => name.toLowerCase().includes(search.toLowerCase()))
-
 
28
 
-
 
29
  // Time intervals
-
 
30
  let heartBeatInterval;
25
  const filtredGroups = groups.filter(({ name }) => name.toLowerCase().includes(search.toLowerCase()))
31
 
26
 
32
  const handleEntities = entities => {
27
  const handleEntities = entities => {
33
    setFullChats([...entities]);
28
    setFullChats([...entities]);
34
    let newUserContacts = [];
29
    let newUserContacts = [];
Línea 290... Línea 285...
290
                    >
285
                    >
291
                      <Contacts
286
                      <Contacts
292
                        contacts={filtredContacts}
287
                        contacts={filtredContacts}
293
                        onOpenConversation={handleOpenConversation}
288
                        onOpenConversation={handleOpenConversation}
294
                      />
289
                      />
295
                    </div>
290
                    </div>x
296
                    <div
291
                    <div
297
                      className="group-list chatboxcontent"
292
                      className="group-list chatboxcontent"
298
                      style={{
293
                      style={{
299
                        display: activeTab === "group" ? "block" : "none",
294
                        display: activeTab === "group" ? "block" : "none",
300
                      }}
295
                      }}