2024-06-25 02:08:24 -04:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import MemberPrivileges from './member-privileges'
|
2024-06-28 02:18:37 -04:00
|
|
|
import Icon from '@/shared/components/icon'
|
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'
|
|
|
|
import MaterialIcon from '@/shared/components/material-icon'
|
|
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
2024-06-25 02:08:24 -04:00
|
|
|
|
|
|
|
export default function ViewMember({ member }) {
|
|
|
|
return (
|
2024-10-09 08:13:50 -04:00
|
|
|
<OLRow className="project-member">
|
|
|
|
<OLCol xs={8}>
|
2024-06-28 02:18:37 -04:00
|
|
|
<div className="project-member-email-icon">
|
2024-10-09 08:13:50 -04:00
|
|
|
<BootstrapVersionSwitcher
|
|
|
|
bs3={<Icon type="user" fw />}
|
|
|
|
bs5={<MaterialIcon type="person" />}
|
|
|
|
/>
|
2024-06-28 02:18:37 -04:00
|
|
|
<div className="email-warning">{member.email}</div>
|
|
|
|
</div>
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLCol>
|
|
|
|
<OLCol xs={4} className="text-end">
|
2024-06-25 02:08:24 -04:00
|
|
|
<MemberPrivileges privileges={member.privileges} />
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLCol>
|
|
|
|
</OLRow>
|
2024-06-25 02:08:24 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
ViewMember.propTypes = {
|
|
|
|
member: PropTypes.shape({
|
|
|
|
_id: PropTypes.string.isRequired,
|
|
|
|
email: PropTypes.string.isRequired,
|
|
|
|
privileges: PropTypes.string.isRequired,
|
|
|
|
}).isRequired,
|
|
|
|
}
|