Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3665 Rev 3670
Línea 1... Línea 1...
1
import React from 'react';
1
import React from 'react';
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 { Box, 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...
6
 
6
 
7
import { parse } from '@shared/utils';
7
import { parse } from '@shared/utils';
Línea 30... Línea 30...
30
 
30
 
Línea 31... Línea 31...
31
  if (loading) return <Spinner />;
31
  if (loading) return <Spinner />;
32
 
32
 
33
  return (
33
  return (
Línea 34... Línea 34...
34
    <>
34
    <>
35
      <PageHeader title={labels.knowledge_area_title} goBack />
35
      <PageHeader title={knowledge.title} goBack />
36
 
36
 
37
      <Card>
37
      <Card>
Línea 53... Línea 53...
53
            saveUrl={knowledge.routeSaveReaction}
53
            saveUrl={knowledge.routeSaveReaction}
54
            onReaction={() => {}}
54
            onReaction={() => {}}
55
          />
55
          />
Línea 56... Línea 56...
56
 
56
 
57
          {knowledge.attachment && (
57
          {knowledge.attachment && (
58
            <a href={knowledge.attachment} download>
58
            <Button component='a' href={knowledge.attachment} download>
59
              <FileDownload />
59
              <FileDownload />
60
              {labels.knowledge_area_download_attachment}
60
              {labels.knowledge_area_download_attachment}
61
            </a>
61
            </Button>
62
          )}
62
          )}
63
          {knowledge.link && (
63
          {knowledge.link && (
64
            <a href={knowledge.link} target='_blank' rel='noreferrer'>
64
            <Button component='a' href={knowledge.link} target='_blank' rel='noreferrer'>
65
              {labels.knowledge_area_go_to_link}
65
              {labels.knowledge_area_go_to_link}
66
            </a>
66
            </Button>
67
          )}
67
          )}
Línea 68... Línea 68...
68
        </CardActions>
68
        </CardActions>
-
 
69
 
69
 
70
        <CardActions>
70
        <CardContent>
71
          <Box sx={{ display: 'flex', flexDirection: 'column', gap: 1, width: '100%' }}>
-
 
72
            <CommentForm onSubmit={addComment} />
71
          <CommentForm onSubmit={addComment} />
73
            <CommentList comments={comments} onDelete={deleteComment} />
72
          <CommentList comments={comments} onDelete={deleteComment} />
74
          </Box>
73
        </CardContent>
75
        </CardActions>
74
      </Card>
76
      </Card>
75
    </>
77
    </>