Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 704 Rev 2864
Línea 1... Línea 1...
1
import React, { useEffect, useState } from 'react'
1
import React, { useEffect, useState } from 'react'
2
import { useSelector } from 'react-redux'
2
import { useSelector } from 'react-redux'
-
 
3
import { Typography } from '@mui/material'
3
import IconButton from '@mui/material/IconButton'
4
import IconButton from '@mui/material/IconButton'
4
import EditIcon from '@mui/icons-material/Edit'
5
import EditIcon from '@mui/icons-material/Edit'
Línea -... Línea 6...
-
 
6
 
-
 
7
import { parse } from '@utils'
5
 
8
 
6
import OverviewModal from './OverviewModal'
9
import OverviewModal from './OverviewModal'
7
import EmptySection from '../UI/EmptySection'
-
 
Línea 8... Línea 10...
8
import Paraphrase from '../UI/Paraphrase'
10
import EmptySection from '../UI/EmptySection'
9
 
11
 
10
const Overview = ({ overview: defaultValue, id, isEdit }) => {
12
const Overview = ({ overview: defaultValue, id, isEdit }) => {
11
  const [overview, setOverview] = useState('')
13
  const [overview, setOverview] = useState('')
Línea 30... Línea 32...
30
              <EditIcon />
32
              <EditIcon />
31
            </IconButton>
33
            </IconButton>
32
          )}
34
          )}
33
        </div>
35
        </div>
34
        {overview ? (
36
        {overview ? (
35
          <Paraphrase>{overview}</Paraphrase>
37
          <Typography>{parse(overview)}</Typography>
36
        ) : (
38
        ) : (
37
          <EmptySection align='left' message={labels.empty} />
39
          <EmptySection align='left' message={labels.empty} />
38
        )}
40
        )}
39
      </div>
41
      </div>
40
      <OverviewModal
42
      <OverviewModal