Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3619 Rev 3621
Línea 16... Línea 16...
16
    deleteConversation
16
    deleteConversation
17
  } = useConversations();
17
  } = useConversations();
Línea 18... Línea 18...
18
 
18
 
Línea 19... Línea 19...
19
  const { showModal } = useModal();
19
  const { showModal } = useModal();
20
 
20
 
21
  const toggleConversationModal = () => {
21
  const showUserModal = () => {
22
    showModal(
22
    showModal(
23
      'Iniciar conversación',
23
      'Iniciar conversación',
24
      <SearchUserModal
24
      <SearchUserModal
Línea 36... Línea 36...
36
      <Grid
36
      <Grid
37
        item
37
        item
38
        xs={12}
38
        xs={12}
39
        md={4}
39
        md={4}
40
        sx={{
40
        sx={{
41
          display: { xs: currentConversation ? 'none' : 'flex', md: 'flex' }
41
          display: { xs: currentConversation ? 'none' : 'block', md: 'block' }
42
        }}
42
        }}
43
      >
43
      >
44
        <ConversationsList
44
        <ConversationsList
45
          conversations={conversations}
45
          conversations={conversations}
46
          onSelectConversation={setCurrentConversation}
46
          onSelectConversation={setCurrentConversation}
47
          onStartConversation={toggleConversationModal}
47
          onStartConversation={showUserModal}
48
        />
48
        />
49
      </Grid>
49
      </Grid>
Línea 50... Línea 50...
50
 
50
 
51
      <Grid
51
      <Grid
52
        item
52
        item
53
        xs={12}
53
        xs={12}
54
        md={8}
54
        md={8}
55
        sx={{
55
        sx={{
56
          display: { xs: currentConversation ? 'flex' : 'none', md: 'flex' }
56
          display: { xs: currentConversation ? 'block' : 'none', md: 'block' }
57
        }}
57
        }}
58
      >
58
      >
59
        <MessagesList
59
        <MessagesList
60
          conversation={currentConversation}
60
          conversation={currentConversation}