2024-05-08 09:43:25 -04:00
|
|
|
import getMeta from '@/utils/meta'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
|
|
|
|
export default function AcceptedInvite() {
|
|
|
|
const { t } = useTranslation()
|
2024-06-18 06:01:37 -04:00
|
|
|
const inviterName = getMeta('ol-inviterName')
|
|
|
|
const groupSSOActive = getMeta('ol-groupSSOActive')
|
|
|
|
const subscriptionId = getMeta('ol-subscriptionId')
|
2024-05-08 09:43:25 -04:00
|
|
|
|
|
|
|
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>
|
|
|
|
)
|
|
|
|
}
|