2024-06-25 02:08:24 -04:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import { Col, Row } from 'react-bootstrap'
|
|
|
|
import MemberPrivileges from './member-privileges'
|
2024-06-28 02:18:37 -04:00
|
|
|
import Icon from '@/shared/components/icon'
|
2024-06-25 02:08:24 -04:00
|
|
|
|
|
|
|
export default function ViewMember({ member }) {
|
|
|
|
return (
|
|
|
|
<Row className="project-member">
|
2024-06-28 02:18:37 -04:00
|
|
|
<Col xs={9}>
|
|
|
|
<div className="project-member-email-icon">
|
|
|
|
<Icon type="user" fw />
|
|
|
|
<div className="email-warning">{member.email}</div>
|
|
|
|
</div>
|
|
|
|
</Col>
|
|
|
|
<Col xs={3} className="text-left">
|
2024-06-25 02:08:24 -04:00
|
|
|
<MemberPrivileges privileges={member.privileges} />
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
ViewMember.propTypes = {
|
|
|
|
member: PropTypes.shape({
|
|
|
|
_id: PropTypes.string.isRequired,
|
|
|
|
email: PropTypes.string.isRequired,
|
|
|
|
privileges: PropTypes.string.isRequired,
|
|
|
|
}).isRequired,
|
|
|
|
}
|