Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3510 Rev 3665
Línea 2... Línea 2...
2
import { useSelector } from 'react-redux';
2
import { useSelector } from 'react-redux';
3
import { useParams } from 'react-router-dom';
3
import { useParams } from 'react-router-dom';
4
import { Button, Typography } from '@mui/material';
4
import { Button, Typography } from '@mui/material';
5
import { FileDownload } from '@mui/icons-material';
5
import { FileDownload } from '@mui/icons-material';
Línea 6... Línea -...
6
 
-
 
7
import { withReactions } from '@hocs';
-
 
8
import { useKnowledge } from '@knowledges/hooks';
6
 
-
 
7
import { parse } from '@shared/utils';
-
 
8
import { useKnowledge } from '@knowledges/hooks';
-
 
9
 
Línea 9... Línea 10...
9
import { parse } from '@shared/utils';
10
import { withReactions } from '@hocs';
10
 
11
 
11
import {
12
import {
12
  Card,
13
  Card,
13
  CardActions,
14
  CardActions,
14
  CardContent,
15
  CardContent,
15
  CardMedia,
16
  CardMedia,
16
  CommentForm,
17
  CommentForm,
-
 
18
  CommentList,
17
  CommentsList,
19
  PageHeader,
Línea 18... Línea 20...
18
  PageHeader
20
  Spinner
19
} from '@shared/components';
21
} from '@shared/components';
20
 
22
 
Línea 21... Línea 23...
21
export default function KnowledgePage() {
23
export default function KnowledgePage() {
Línea 22... Línea 24...
22
  const labels = useSelector(({ intl }) => intl.labels);
24
  const labels = useSelector(({ intl }) => intl.labels);
Línea -... Línea 25...
-
 
25
  const { uuid } = useParams();
-
 
26
 
23
  const { uuid } = useParams();
27
  const { knowledge, comments, loading, addComment, deleteComment } = useKnowledge(uuid);
24
 
28
 
25
  const { knowledge, comments, addComment, deleteComment } = useKnowledge(uuid);
29
  const ReactionsButton = withReactions(Button);
Línea 26... Línea 30...
26
 
30
 
Línea 63... Línea 67...
63
          )}
67
          )}
64
        </CardActions>
68
        </CardActions>
Línea 65... Línea 69...
65
 
69
 
66
        <CardContent>
70
        <CardContent>
67
          <CommentForm onSubmit={addComment} />
71
          <CommentForm onSubmit={addComment} />
68
          <CommentsList comments={comments} onDelete={deleteComment} />
72
          <CommentList comments={comments} onDelete={deleteComment} />
69
        </CardContent>
73
        </CardContent>
70
      </Card>
74
      </Card>
71
    </>
75
    </>
72
  );
76
  );