Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15833 Rev 16291
Línea 4... Línea 4...
4
import Sidebar from "./Sidebar";
4
import Sidebar from "./Sidebar";
5
import Chat from "../chat/Chat";
5
import Chat from "../chat/Chat";
6
import Modal from "react-bootstrap/Modal";
6
import Modal from "react-bootstrap/Modal";
7
import EmptySection from "../../../shared/empty-section/EmptySection";
7
import EmptySection from "../../../shared/empty-section/EmptySection";
Línea 8... Línea 8...
8
 
8
 
9
const DesktopChat = ({ chatUsers, chatGroups }) => {
9
const DesktopChat = ({ chatUsers, chatGroups, timezones }) => {
10
  const [selectedConversation, setSelectedConversation] = useState(null);
10
  const [selectedConversation, setSelectedConversation] = useState(null);
Línea 11... Línea 11...
11
  const [visible, setVisible] = useState(false);
11
  const [visible, setVisible] = useState(false);
12
 
12
 
Línea 31... Línea 31...
31
          selectedConversation={selectedConversation}
31
          selectedConversation={selectedConversation}
32
        />
32
        />
33
        {!selectedConversation ? (
33
        {!selectedConversation ? (
34
          <EmptySection message="Selecciona una conversación" align="center" />
34
          <EmptySection message="Selecciona una conversación" align="center" />
35
        ) : (
35
        ) : (
-
 
36
          <Chat
-
 
37
            entity={selectedConversation}
36
          <Chat entity={selectedConversation} onCloseChat={handleCloseChat} />
38
            onCloseChat={handleCloseChat}
-
 
39
            timezones={timezones}
-
 
40
          />
37
        )}
41
        )}
38
      </main>
42
      </main>
39
      <DesktopChat.ChatModal show={visible} onClose={onClose} />
43
      <DesktopChat.ChatModal show={visible} onClose={onClose} />
40
    </>
44
    </>
41
  );
45
  );