overleaf/services/web/frontend/js/features/share-project-modal/components/restricted-link-sharing/view-member.jsx
roo hutton 268291b52d Merge pull request #19181 from overleaf/rh-share-modal-collab-view
[web] Styling tweaks in new share modal

GitOrigin-RevId: 2b69612aff518ae0cb4f08851adc73971e5ac983
2024-06-28 08:05:13 +00:00

28 lines
793 B
JavaScript

import PropTypes from 'prop-types'
import { Col, Row } from 'react-bootstrap'
import MemberPrivileges from './member-privileges'
import Icon from '@/shared/components/icon'
export default function ViewMember({ member }) {
return (
<Row className="project-member">
<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">
<MemberPrivileges privileges={member.privileges} />
</Col>
</Row>
)
}
ViewMember.propTypes = {
member: PropTypes.shape({
_id: PropTypes.string.isRequired,
email: PropTypes.string.isRequired,
privileges: PropTypes.string.isRequired,
}).isRequired,
}