Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5462 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5462 Rev 5797
Línea 1... Línea 1...
1
/* eslint-disable react/prop-types */
1
/* eslint-disable react/prop-types */
2
import React from 'react'
2
import React from 'react'
Línea 3... Línea -...
3
 
-
 
4
const MemberTemplate = ({
-
 
5
  member = {},
3
 
6
  handleAction = function () { }
-
 
7
}) => {
4
const MemberTemplate = ({ member = {}, handleAction = function () {} }) => {
Línea 8... Línea 5...
8
  const { name = '', image = '', profile = '', actions = {} } = member
5
  const { name = '', image = '', profile = '', actions = {} } = member
9
 
6
 
10
  return (
7
  return (
11
        <div className='user w-100'>
8
    <div className="user">
12
            <div className="w-100 d-flex align-items-center justify-content-start" style={{ gap: '1rem' }}>
9
      <div className="d-inline-flex align-items-center">
13
                <a href={profile} target="_blank" rel="noreferrer">
10
        <a href={profile} target="_blank" rel="noreferrer">
14
                    <img src={image} alt={`${name} profile image`} />
11
          <img src={image} alt={`${name} profile image`} />
-
 
12
        </a>
15
                </a>
13
        <h4>{name}</h4>
16
                <h4>{name}</h4>
14
      </div>
17
                {actions?.link_approve &&
15
      {actions?.link_approve && (
18
                    <i
16
        <i
19
                        onClick={() => handleAction(actions.link_approve)}
17
          onClick={() => handleAction(actions.link_approve)}
20
                        className="fa fa-check icon-button btn btn-primary"
18
          className="fa fa-check icon-button btn btn-primary ml-auto"
21
                        title="Aprobar"
19
          title="Aprobar"
22
                    />
20
        />
23
                }
21
      )}
24
                {actions?.link_reject &&
22
      {actions?.link_reject && (
25
                    <i
23
        <i
26
                        onClick={() => handleAction(actions.link_reject)}
24
          onClick={() => handleAction(actions.link_reject)}
27
                        className="fa fa-close icon-button btn btn-secondary"
25
          className="fa fa-close icon-button btn btn-secondary ml-auto"
-
 
26
          title="Rechazar"
28
                        title="Rechazar" />
27
        />
29
                }
28
      )}
30
                {actions?.link_cancel &&
29
      {actions?.link_cancel && (
31
                    <i
30
        <i
32
                        onClick={() => handleAction(actions.link_cancel)}
31
          onClick={() => handleAction(actions.link_cancel)}
33
                        className="fa fa-trash icon-button btn btn-secondary"
32
          className="fa fa-trash icon-button btn btn-secondary ml-auto"
34
                        title="Cancelar"
33
          title="Cancelar"
35
                    />
-
 
36
                }
34
        />
37
            </div>
35
      )}
38
        </div>
36
    </div>
Línea 39... Línea 37...
39
  )
37
  )