overleaf/services/web/frontend/js/features/share-project-modal/components/owner-info.js
Miguel Serrano b7802674d5 Merge pull request #4245 from overleaf/msm-extract-project-context
React `project-context`

GitOrigin-RevId: 6a23437d6e6a328ff5854622ff903d348db1f8b8
2021-06-26 02:05:49 +00:00

16 lines
435 B
JavaScript

import { useProjectContext } from '../../../shared/context/project-context'
import { Col, Row } from 'react-bootstrap'
import { Trans } from 'react-i18next'
export default function OwnerInfo() {
const project = useProjectContext()
return (
<Row className="project-member">
<Col xs={7}>{project.owner?.email}</Col>
<Col xs={3} className="text-left">
<Trans i18nKey="owner" />
</Col>
</Row>
)
}