mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-13 15:59:23 -05:00
ae0abd6445
[web] Break word on group invite header GitOrigin-RevId: 790c24e8291f1dbdfa9231e4c9e3d4e531bf2b8f
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { Col, Row } from 'react-bootstrap'
|
|
import { Trans } from 'react-i18next'
|
|
import GroupInvitesItemFooter from './group-invites-item-footer'
|
|
import type { TeamInvite } from '../../../../../../types/team-invite'
|
|
|
|
type GroupInvitesItemProps = {
|
|
teamInvite: TeamInvite
|
|
}
|
|
|
|
export default function GroupInvitesItem({
|
|
teamInvite,
|
|
}: GroupInvitesItemProps) {
|
|
return (
|
|
<Row className="row-spaced">
|
|
<Col md={8} mdOffset={2} className="text-center">
|
|
<div className="card">
|
|
<div className="page-header">
|
|
<h2>
|
|
<Trans
|
|
i18nKey="invited_to_group"
|
|
values={{ inviterName: teamInvite.inviterName }}
|
|
shouldUnescape
|
|
tOptions={{ interpolation: { escapeValue: true } }}
|
|
components={
|
|
/* eslint-disable-next-line react/jsx-key */
|
|
[<span className="team-invite-name" />]
|
|
}
|
|
/>
|
|
</h2>
|
|
</div>
|
|
<GroupInvitesItemFooter teamInvite={teamInvite} />
|
|
</div>
|
|
</Col>
|
|
</Row>
|
|
)
|
|
}
|