mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-05 07:19:02 -05:00
0639f266d8
[web] Redirect to invite screen if new user register with a pending group invitations GitOrigin-RevId: 39aeffd65b9d793c87e53398a700ad140794594e
28 lines
683 B
TypeScript
28 lines
683 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import type { TeamInvite } from '../../../../../../types/team-invite'
|
|
|
|
type GroupInvitesItemFooterProps = {
|
|
teamInvite: TeamInvite
|
|
}
|
|
|
|
export default function GroupInvitesItemFooter({
|
|
teamInvite,
|
|
}: GroupInvitesItemFooterProps) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div>
|
|
<p data-cy="group-invites-item-footer-text">
|
|
{t('join_team_explanation')}
|
|
</p>
|
|
<div data-cy="group-invites-item-footer-link">
|
|
<a
|
|
className="btn btn-primary"
|
|
href={`/subscription/invites/${teamInvite.token}`}
|
|
>
|
|
{t('view_invitation')}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|