mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 20:14:56 -05:00
1def576973
[SettingsPage] UI Fixes 1 GitOrigin-RevId: 0e0f605191218af4db70a801ff1e50b47f6e0b01
36 lines
916 B
TypeScript
36 lines
916 B
TypeScript
import { UserEmailData } from '../../../../../../types/user-email'
|
|
import { Row, Col } from 'react-bootstrap'
|
|
import Email from './email'
|
|
import InstitutionAndRole from './institution-and-role'
|
|
import EmailCell from './cell'
|
|
import Actions from './actions'
|
|
|
|
type EmailsRowProps = {
|
|
userEmailData: UserEmailData
|
|
}
|
|
|
|
function EmailsRow({ userEmailData }: EmailsRowProps) {
|
|
return (
|
|
<Row>
|
|
<Col md={4}>
|
|
<EmailCell>
|
|
<Email userEmailData={userEmailData} />
|
|
</EmailCell>
|
|
</Col>
|
|
<Col md={5}>
|
|
{userEmailData.affiliation?.institution && (
|
|
<EmailCell>
|
|
<InstitutionAndRole userEmailData={userEmailData} />
|
|
</EmailCell>
|
|
)}
|
|
</Col>
|
|
<Col md={3}>
|
|
<EmailCell className="text-md-right">
|
|
<Actions userEmailData={userEmailData} />
|
|
</EmailCell>
|
|
</Col>
|
|
</Row>
|
|
)
|
|
}
|
|
|
|
export default EmailsRow
|