Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5497 Rev 5499
Línea 2... Línea 2...
2
import parse from 'html-react-parser'
2
import parse from 'html-react-parser'
Línea 3... Línea 3...
3
 
3
 
4
import IconButton from '@mui/material/IconButton'
4
import IconButton from '@mui/material/IconButton'
5
import EditIcon from '@mui/icons-material/Edit'
5
import EditIcon from '@mui/icons-material/Edit'
6
import DeleteIcon from '@mui/icons-material/Delete'
6
import DeleteIcon from '@mui/icons-material/Delete'
Línea 7... Línea 7...
7
import ConfirmationBox from '../../../shared/confirmation-box/ConfirmationBox'
7
import ConfirmModal from '../../../shared/confirm-modal/ConfirmModal'
8
 
8
 
Línea 9... Línea 9...
9
const EducationItem = ({ education, onDelete, onEdit, isEdit }) => {
9
const EducationItem = ({ education, onDelete, onEdit, isEdit }) => {
Línea 21... Línea 21...
21
          {isEdit && (
21
          {isEdit && (
22
            <div className="d-inline-flex align-items-center gap-2">
22
            <div className="d-inline-flex align-items-center gap-2">
23
              <IconButton onClick={() => onEdit(education.link_edit)}>
23
              <IconButton onClick={() => onEdit(education.link_edit)}>
24
                <EditIcon />
24
                <EditIcon />
25
              </IconButton>
25
              </IconButton>
26
              <IconButton onClick={() => toggleConfirmModal()}>
26
              <IconButton onClick={toggleConfirmModal}>
27
                <DeleteIcon />
27
                <DeleteIcon />
28
              </IconButton>
28
              </IconButton>
29
            </div>
29
            </div>
30
          )}
30
          )}
31
        </div>
31
        </div>
Línea 35... Línea 35...
35
        }`}</p>
35
        }`}</p>
36
        {education.field_of_study && <p>{education.field_of_study}</p>}
36
        {education.field_of_study && <p>{education.field_of_study}</p>}
37
        <p>{education.formatted_address}</p>
37
        <p>{education.formatted_address}</p>
38
        {education.description && parse(education.description)}
38
        {education.description && parse(education.description)}
39
      </div>
39
      </div>
40
      <ConfirmationBox
40
      <ConfirmModal
41
        show={isShowModal}
41
        show={isShowModal}
42
        onClose={() => toggleConfirmModal()}
42
        onClose={toggleConfirmModal}
43
        onAccept={() => onDelete(education.link_delete)}
43
        onAccept={() => onDelete(education.link_delete)}
44
      />
44
      />
45
    </>
45
    </>
46
  )
46
  )
47
}
47
}