Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3580 Rev 3581
Línea 1... Línea 1...
1
import React, { useEffect, useState } from 'react';
1
import React, { useEffect, useState } from 'react';
2
import { Grid, Typography } from '@mui/material';
2
import { Grid, Typography } from '@mui/material';
Línea 3... Línea 3...
3
 
3
 
-
 
4
import { useApi, useFetch } from '@shared/hooks';
4
import { useApi, useFetch } from '@shared/hooks';
5
 
Línea 5... Línea 6...
5
import { getMessages } from '@inmail/services';
6
import { getMessages } from '@inmail/services';
6
 
7
 
Línea 30... Línea 31...
30
          conversations={conversations}
31
          conversations={conversations}
31
          onSelectConversation={setSelectedConversation}
32
          onSelectConversation={setSelectedConversation}
32
        />
33
        />
33
      </Grid>
34
      </Grid>
34
      <Grid item xs={12} md={9}>
35
      <Grid item xs={12} md={9}>
35
        {loadingMessages ? (
36
        {loadingMessages && <Spinner />}
36
          <Spinner />
-
 
37
        ) : (
-
 
38
          <>
-
 
39
            {messages.map((message) => (
37
        {messages?.map((message) => (
40
              <Typography key={message.uuid}>{JSON.stringify(message)}</Typography>
38
          <Typography key={message.uuid}>{JSON.stringify(message)}</Typography>
41
            ))}
-
 
42
          </>
-
 
43
        )}
39
        ))}
44
      </Grid>
40
      </Grid>
45
    </Grid>
41
    </Grid>
46
  );
42
  );
47
}
43
}