Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3658 Rev 3659
Línea 18... Línea 18...
18
 
18
 
19
export function CapsuleDetailsPage() {
19
export function CapsuleDetailsPage() {
20
  const { uuid } = useParams();
20
  const { uuid } = useParams();
Línea 21... Línea 21...
21
  const navigate = useNavigate();
21
  const navigate = useNavigate();
Línea 22... Línea 22...
22
 
22
 
Línea 23... Línea 23...
23
  const { capsule, loading, addComment, deleteComment } = useCapsule(uuid);
23
  const { capsule, loading, addComment, removeComment } = useCapsule(uuid);
24
 
24
 
Línea 62... Línea 62...
62
      </CardContent>
62
      </CardContent>
Línea 63... Línea 63...
63
 
63
 
64
      <CardActions>
64
      <CardActions>
65
        <Box sx={{ display: 'flex', flexDirection: 'column', gap: 1, width: '100%' }}>
65
        <Box sx={{ display: 'flex', flexDirection: 'column', gap: 1, width: '100%' }}>
66
          <CapsuleCommentForm onSubmit={addComment} />
66
          <CapsuleCommentForm onSubmit={addComment} />
67
          <CommentList comments={capsule.comments} onDelete={deleteComment} />
67
          <CommentList comments={capsule.comments} onDelete={removeComment} />
68
        </Box>
68
        </Box>
69
      </CardActions>
69
      </CardActions>
70
    </Card>
70
    </Card>
71
  );
71
  );