mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 09:44:03 -05:00
f4455d3e87
[web] Update URLs and copy in managed users screens GitOrigin-RevId: 97820499c4f8123425ddf103a4cd2666be4db08a
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import { Trans } from 'react-i18next'
|
|
import getMeta from '../../../utils/meta'
|
|
|
|
export default function ManagedAccountAlert() {
|
|
const isManaged = getMeta('ol-isManagedAccount', false)
|
|
const currentManagedUserAdminEmail: string = getMeta(
|
|
'ol-currentManagedUserAdminEmail',
|
|
''
|
|
)
|
|
|
|
if (!isManaged) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<div className="enrollment-alert">
|
|
<div className="icon">
|
|
<span className="info-badge" />
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<strong>
|
|
<Trans
|
|
i18nKey="account_managed_by_group_administrator"
|
|
values={{
|
|
admin: currentManagedUserAdminEmail,
|
|
}}
|
|
/>
|
|
</strong>
|
|
</div>
|
|
<div>
|
|
<Trans
|
|
i18nKey="need_contact_group_admin_to_make_changes"
|
|
components={[
|
|
<a href="/learn/how-to/Understanding_Managed_Overleaf_Accounts" />, // eslint-disable-line jsx-a11y/anchor-has-content, react/jsx-key
|
|
]}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|