Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5496 Rev 5497
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
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'
Línea 6... Línea 7...
6
import ConfirmationBox from '../../../shared/confirmation-box/ConfirmationBox'
7
import ConfirmationBox from '../../../shared/confirmation-box/ConfirmationBox'
7
 
8
 
Línea 20... Línea 21...
20
          {isEdit && (
21
          {isEdit && (
21
            <div className="d-inline-flex align-items-center gap-2">
22
            <div className="d-inline-flex align-items-center gap-2">
22
              <IconButton onClick={() => onEdit(education.link_edit)}>
23
              <IconButton onClick={() => onEdit(education.link_edit)}>
23
                <EditIcon />
24
                <EditIcon />
24
              </IconButton>
25
              </IconButton>
25
              <IconButton onClick={toggleConfirmModal}>
26
              <IconButton onClick={() => toggleConfirmModal()}>
26
                <EditIcon />
27
                <DeleteIcon />
27
              </IconButton>
28
              </IconButton>
28
            </div>
29
            </div>
29
          )}
30
          )}
30
        </div>
31
        </div>
31
        <h4>{education.university}</h4>
32
        <h4>{education.university}</h4>
Línea 36... Línea 37...
36
        <p>{education.formatted_address}</p>
37
        <p>{education.formatted_address}</p>
37
        {education.description && parse(education.description)}
38
        {education.description && parse(education.description)}
38
      </div>
39
      </div>
39
      <ConfirmationBox
40
      <ConfirmationBox
40
        show={isShowModal}
41
        show={isShowModal}
41
        onClose={toggleConfirmModal}
42
        onClose={() => toggleConfirmModal()}
42
        onAccept={() => onDelete(education.link_delete)}
43
        onAccept={() => onDelete(education.link_delete)}
43
      />
44
      />
44
    </>
45
    </>
45
  )
46
  )
46
}
47
}