mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
c6b88085d5
[web] Migrate team invite to React GitOrigin-RevId: 32e968c3b512020aef9a396808c73a7b4859e6d1
24 lines
677 B
TypeScript
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>
|
|
)
|
|
}
|