overleaf/services/web/frontend/js/features/subscription/components/group-invite/accepted-invite.tsx

25 lines
646 B
TypeScript
Raw Normal View History

import getMeta from '@/utils/meta'
import { useTranslation } from 'react-i18next'
export default function AcceptedInvite() {
const { t } = useTranslation()
const inviterName = getMeta('ol-inviterName')
const groupSSOActive = getMeta('ol-groupSSOActive')
const subscriptionId = getMeta('ol-subscriptionId')
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>
)
}