import React from 'react'; import PropTypes from 'prop-types'; import ModalPortal from '../modal-portal'; import FileParticipantDialog from '../dialog/file-participant-dialog'; import { serviceURL } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import '../../css/participants-list.css'; const propTypes = { onParticipantsChange: PropTypes.func.isRequired, participants: PropTypes.array.isRequired, repoID: PropTypes.string.isRequired, filePath: PropTypes.string.isRequired, }; class ParticipantsList extends React.Component { constructor(props) { super(props); this.state = { showDialog : false, }; } toggleDialog = () => { this.setState({ showDialog: !this.state.showDialog }); } render() { const { participants, repoID, filePath } = this.props; return (
{participants.map((item, index) => { return avatar; })} {this.state.showDialog && }
); } } ParticipantsList.propTypes = propTypes; export default ParticipantsList;