Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3615 Rev 3619
Línea 1... Línea 1...
1
import React from 'react';
1
import React from 'react';
2
import { Grid } from '@mui/material';
2
import { Grid } from '@mui/material';
Línea -... Línea 3...
-
 
3
 
3
 
4
import { useModal } from '@shared/hooks';
Línea 4... Línea 5...
4
import { useConversations } from '@inmail/hooks';
5
import { useConversations } from '@inmail/hooks';
5
 
6
 
Línea 6... Línea 7...
6
import { Spinner } from '@shared/components';
7
import { SearchUserModal, Spinner } from '@shared/components';
7
import { ConversationsList, MessagesList } from '@inmail/components';
8
import { ConversationsList, MessagesList } from '@inmail/components';
8
 
9
 
Línea 13... Línea 14...
13
    loading,
14
    loading,
14
    setCurrentConversation,
15
    setCurrentConversation,
15
    deleteConversation
16
    deleteConversation
16
  } = useConversations();
17
  } = useConversations();
Línea -... Línea 18...
-
 
18
 
-
 
19
  const { showModal } = useModal();
17
 
20
 
-
 
21
  const toggleConversationModal = () => {
18
  const toggleConversationModal = () => {
22
    showModal(
-
 
23
      'Iniciar conversación',
-
 
24
      <SearchUserModal
-
 
25
        onSelect={(user) => {
-
 
26
          console.log(user);
-
 
27
        }}
-
 
28
      />
19
    // TODO: Implementar modal de inicio de conversación
29
    );
Línea 20... Línea 30...
20
  };
30
  };
Línea 21... Línea 31...
21
 
31
 
Línea 44... Línea 54...
44
        md={8}
54
        md={8}
45
        sx={{
55
        sx={{
46
          display: { xs: currentConversation ? 'flex' : 'none', md: 'flex' }
56
          display: { xs: currentConversation ? 'flex' : 'none', md: 'flex' }
47
        }}
57
        }}
48
      >
58
      >
49
        {/* <MessagesList
59
        <MessagesList
50
          conversation={currentConversation}
60
          conversation={currentConversation}
51
          onClose={() => setCurrentConversation(null)}
61
          onClose={() => setCurrentConversation(null)}
52
          onDelete={() =>
62
          onDelete={() =>
53
            currentConversation?.delete_link && deleteConversation(currentConversation.delete_link)
63
            currentConversation?.delete_link && deleteConversation(currentConversation.delete_link)
54
          }
64
          }
55
        /> */}
65
        />
56
      </Grid>
66
      </Grid>
57
    </Grid>
67
    </Grid>
58
  );
68
  );
59
};
69
};