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-08-26 09:03:37 -04:00
|
|
|
<Col xs={8}>
|
2024-06-28 02:18:37 -04:00
|
|
|
<div className="project-member-email-icon">
|
|
|
|
<Icon type="user" fw />
|
|
|
|
<div className="email-warning">{member.email}</div>
|
|
|
|
</div>
|
|
|
|
</Col>
|
2024-08-26 09:03:37 -04:00
|
|
|
<Col xs={4} className="text-right">
|
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,
|
|
|
|
}
|