2021-03-12 05:23:46 -05:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import MemberPrivileges from './member-privileges'
|
2024-10-09 08:13:50 -04:00
|
|
|
import OLRow from '@/features/ui/components/ol/ol-row'
|
|
|
|
import OLCol from '@/features/ui/components/ol/ol-col'
|
2021-03-12 05:23:46 -05:00
|
|
|
|
|
|
|
export default function ViewMember({ member }) {
|
|
|
|
return (
|
2024-10-09 08:13:50 -04:00
|
|
|
<OLRow className="project-member">
|
|
|
|
<OLCol xs={7}>{member.email}</OLCol>
|
|
|
|
<OLCol xs={3}>
|
2021-03-12 05:23:46 -05:00
|
|
|
<MemberPrivileges privileges={member.privileges} />
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLCol>
|
|
|
|
</OLRow>
|
2021-03-12 05:23:46 -05:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
ViewMember.propTypes = {
|
|
|
|
member: PropTypes.shape({
|
|
|
|
_id: PropTypes.string.isRequired,
|
|
|
|
email: PropTypes.string.isRequired,
|
2021-04-27 03:52:58 -04:00
|
|
|
privileges: PropTypes.string.isRequired,
|
|
|
|
}).isRequired,
|
2021-03-12 05:23:46 -05:00
|
|
|
}
|