overleaf/services/web/frontend/js/features/subscription/components/group-invite/accepted-invite.tsx
Jessica Lawshe c6b88085d5 Merge pull request #18188 from overleaf/jel-react-group-invite
[web] Migrate team invite to React

GitOrigin-RevId: 32e968c3b512020aef9a396808c73a7b4859e6d1
2024-05-09 08:05:03 +00:00

24 lines
677 B
TypeScript

import getMeta from '@/utils/meta'
import { useTranslation } from 'react-i18next'
export default function AcceptedInvite() {
const { t } = useTranslation()
const inviterName = getMeta('ol-inviterName') as string
const groupSSOActive = getMeta('ol-groupSSOActive') as boolean
const subscriptionId = getMeta('ol-subscriptionId') as string
const doneLink = groupSSOActive
? `/subscription/${subscriptionId}/sso_enrollment`
: '/project'
return (
<div className="text-center">
<p>{t('joined_team', { inviterName })}</p>
<p>
<a href={doneLink} className="btn btn-primary">
{t('done')}
</a>
</p>
</div>
)
}