Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5496 Rev 5499
Línea 1... Línea 1...
1
import React, { useState, useEffect } from 'react'
1
import React, { useState, useEffect } from 'react'
2
import ConfirmationBox from '../../../shared/confirmation-box/ConfirmationBox'
-
 
3
import parse from 'html-react-parser'
2
import parse from 'html-react-parser'
-
 
3
 
4
import EditIcon from '@mui/icons-material/Edit'
4
import EditIcon from '@mui/icons-material/Edit'
5
import DeleteIcon from '@mui/icons-material/Delete'
5
import DeleteIcon from '@mui/icons-material/Delete'
6
import IconButton from '@mui/material/IconButton'
6
import IconButton from '@mui/material/IconButton'
-
 
7
import ConfirmModal from '../../../shared/confirm-modal/ConfirmModal'
Línea 7... Línea 8...
7
 
8
 
8
const Experience = ({ experience, months = [], onDelete, onEdit, isEdit }) => {
9
const Experience = ({ experience, months = [], onDelete, onEdit, isEdit }) => {
9
  const [isConfirmationBoxShow, setIsConfirmationBoxShow] = useState(false)
10
  const [isConfirmationBoxShow, setIsConfirmationBoxShow] = useState(false)
Línea 46... Línea 47...
46
          experience.size
47
          experience.size
47
        }`}</p>
48
        }`}</p>
48
        <p>{experience.formatted_address}</p>
49
        <p>{experience.formatted_address}</p>
49
        {experience.description && parse(experience.description)}
50
        {experience.description && parse(experience.description)}
50
      </div>
51
      </div>
51
      <ConfirmationBox
52
      <ConfirmModal
52
        show={isConfirmationBoxShow}
53
        show={isConfirmationBoxShow}
53
        onClose={toggleConfirmModal}
54
        onClose={toggleConfirmModal}
54
        onAccept={() => onDelete(experience.link_delete)}
55
        onAccept={() => onDelete(experience.link_delete)}
55
      />
56
      />
56
    </>
57
    </>