Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3879 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3878 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3
import { Modal } from 'react-bootstrap'
4
import MemberTemplate from './MemberTemplate'
5
 
6
const MembersModal = ({
7
    isShow = false,
8
    members = [],
9
    handleClose = function () { },
10
    handleAction = function () { }
11
}) => {
12
 
13
    return (
14
        <Modal show={isShow} onHide={handleClose}>
15
            <Modal.Header closeButton>Miembros</Modal.Header>
16
            <Modal.Body>
17
                {
18
                    members.map((member) =>
19
                        <MemberTemplate
20
                            key={member.id}
21
                            member={member}
22
                            handleAction={handleAction}
23
                        />
24
                    )
25
                }
26
            </Modal.Body>
27
        </Modal>
28
    )
29
}
30
 
31
export default MembersModal