mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-08-06 20:00:08 +02:00

Remove proptypes from ShareProjectModal GitOrigin-RevId: b95fed5007f72e4a57a65b1d08d8fcc9579b3630
25 lines
781 B
TypeScript
25 lines
781 B
TypeScript
import MemberPrivileges from './member-privileges'
|
|
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 { ProjectContextMember } from '@/shared/context/types/project-context'
|
|
|
|
export default function ViewMember({
|
|
member,
|
|
}: {
|
|
member: ProjectContextMember
|
|
}) {
|
|
return (
|
|
<OLRow className="project-member">
|
|
<OLCol xs={8}>
|
|
<div className="project-member-email-icon">
|
|
<MaterialIcon type="person" />
|
|
<div className="email-warning">{member.email}</div>
|
|
</div>
|
|
</OLCol>
|
|
<OLCol xs={4} className="text-end">
|
|
<MemberPrivileges privileges={member.privileges} />
|
|
</OLCol>
|
|
</OLRow>
|
|
)
|
|
}
|