mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 13:58:46 -05:00
268291b52d
[web] Styling tweaks in new share modal GitOrigin-RevId: 2b69612aff518ae0cb4f08851adc73971e5ac983
28 lines
793 B
JavaScript
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,
|
|
}
|