mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
* update doc links to point to docs.overleaf.com instead of the old learn wiki * fix broken link to LaTeX positioning wiki article in figure modal help * point figure positioning help link to the docs.overleaf.com page * point figure/table label help links to specific anchors on the captioning-and-referencing-figures doc page * point figure modal error-help link to the graphicx-loading doc page * normalize target/rel on docs.overleaf.com links opened in a new tab * open figure modal and SSO help links in a new tab now that they point off-site * add eslint rule enforcing rel=noopener noreferrer on docs.overleaf.com links * extend require-rel-for-docs-links to also check OLButton * add lint script catching missing rel on docs.overleaf.com links in pug templates * fix require-rel-for-docs-links autofix crash on valueless rel attribute Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * add regression test for require-rel-for-docs-links valueless-rel autofix * revert `target=_blank` on figure modal and SSO help links --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> GitOrigin-RevId: b6111341e1080fd7e4b42f6a1a18c27ea0fd7d8c
32 lines
990 B
TypeScript
32 lines
990 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'
|
|
)
|
|
|
|
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="https://docs.overleaf.com/accounts-and-security/understanding-managed-accounts" />,
|
|
]}
|
|
/>
|
|
</p>
|
|
}
|
|
/>
|
|
)
|
|
}
|