mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-05 12:47:50 -05:00
c6b88085d5
[web] Migrate team invite to React GitOrigin-RevId: 32e968c3b512020aef9a396808c73a7b4859e6d1
31 lines
975 B
TypeScript
31 lines
975 B
TypeScript
import { Trans, useTranslation } from 'react-i18next'
|
|
import Notification from '@/shared/components/notification'
|
|
import getMeta from '@/utils/meta'
|
|
|
|
export default function ManagedUserCannotJoin() {
|
|
const { t } = useTranslation()
|
|
const currentManagedUserAdminEmail = getMeta(
|
|
'ol-currentManagedUserAdminEmail'
|
|
) as string
|
|
|
|
return (
|
|
<Notification
|
|
type="info"
|
|
title={t('you_cant_join_this_group_subscription')}
|
|
content={
|
|
<p>
|
|
<Trans
|
|
i18nKey="your_account_is_managed_by_admin_cant_join_additional_group"
|
|
values={{ admin: currentManagedUserAdminEmail }}
|
|
shouldUnescape
|
|
tOptions={{ interpolation: { escapeValue: true } }}
|
|
components={[
|
|
/* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
|
|
<a href="/learn/how-to/Understanding_Managed_Overleaf_Accounts" />,
|
|
]}
|
|
/>
|
|
</p>
|
|
}
|
|
/>
|
|
)
|
|
}
|