overleaf/services/web/frontend/js/features/subscription/components/group-invites/group-invites-item.tsx
M Fahru 0639f266d8 Merge pull request #14756 from overleaf/mf-group-invite-new-user-redirection
[web] Redirect to invite screen if new user register with a pending group invitations

GitOrigin-RevId: 39aeffd65b9d793c87e53398a700ad140794594e
2023-11-10 09:04:23 +00:00

31 lines
843 B
TypeScript

import { Col, Row } from 'react-bootstrap'
import { useTranslation } 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) {
const { t } = useTranslation()
return (
<Row className="row-spaced">
<Col md={8} mdOffset={2} className="text-center">
<div className="card">
<div className="page-header">
<h2>
{t('invited_to_group', {
inviterName: teamInvite.inviterName,
})}
</h2>
</div>
<GroupInvitesItemFooter teamInvite={teamInvite} />
</div>
</Col>
</Row>
)
}