Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3533 Rev 3538
Línea 15... Línea 15...
15
} from '@shared/components';
15
} from '@shared/components';
Línea 16... Línea 16...
16
 
16
 
17
export function CapsulePage() {
17
export function CapsulePage() {
Línea 18... Línea 18...
18
  const { uuid } = useParams();
18
  const { uuid } = useParams();
Línea 19... Línea 19...
19
 
19
 
Línea 20... Línea 20...
20
  const { capsule, loading } = useCapsule(uuid);
20
  const { capsule, loading, addComment, deleteComment } = useCapsule(uuid);
21
 
21
 
Línea 35... Línea 35...
35
      <CardContent>
35
      <CardContent>
36
        <Typography variant='h1'>{capsule.name}</Typography>
36
        <Typography variant='h1'>{capsule.name}</Typography>
37
        <Typography>{parse(capsule.description)}</Typography>
37
        <Typography>{parse(capsule.description)}</Typography>
Línea 38... Línea 38...
38
 
38
 
39
        <Box sx={{ mt: 1, display: 'flex', flexDirection: 'column', gap: 1 }}>
39
        <Box sx={{ mt: 1, display: 'flex', flexDirection: 'column', gap: 1 }}>
40
          <CommentForm />
40
          <CommentForm onSubmit={addComment} />
41
          <CommentsList comments={capsule.comments} />
41
          <CommentsList comments={capsule.comments} onDelete={deleteComment} />
42
        </Box>
42
        </Box>
43
      </CardContent>
43
      </CardContent>
44
    </Card>
44
    </Card>
45
  );
45
  );