mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
4f838ccacf
[web] BS5 share modal GitOrigin-RevId: 40a33e06eab720b568d31aefa021682535b6934e
23 lines
650 B
JavaScript
23 lines
650 B
JavaScript
import PropTypes from 'prop-types'
|
|
import MemberPrivileges from './member-privileges'
|
|
import OLRow from '@/features/ui/components/ol/ol-row'
|
|
import OLCol from '@/features/ui/components/ol/ol-col'
|
|
|
|
export default function ViewMember({ member }) {
|
|
return (
|
|
<OLRow className="project-member">
|
|
<OLCol xs={7}>{member.email}</OLCol>
|
|
<OLCol xs={3}>
|
|
<MemberPrivileges privileges={member.privileges} />
|
|
</OLCol>
|
|
</OLRow>
|
|
)
|
|
}
|
|
|
|
ViewMember.propTypes = {
|
|
member: PropTypes.shape({
|
|
_id: PropTypes.string.isRequired,
|
|
email: PropTypes.string.isRequired,
|
|
privileges: PropTypes.string.isRequired,
|
|
}).isRequired,
|
|
}
|