mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 12:32:43 +08:00

* i18n: removes useTranslate hook * chore: fix duplicate imports * chore: fix import sorting and hook dependencies
29 lines
785 B
TypeScript
29 lines
785 B
TypeScript
import { Trans, t } from '@grafana/i18n';
|
|
import { Page } from 'app/core/components/Page/Page';
|
|
import { contextSrv } from 'app/core/core';
|
|
|
|
import UserInviteForm from './UserInviteForm';
|
|
|
|
export function UserInvitePage() {
|
|
const subTitle = (
|
|
<Trans i18nKey="org.user-invite-page.sub-title" values={{ orgName: contextSrv.user.orgName }}>
|
|
Send invitation or add existing Grafana user to the organization.
|
|
<span className="highlight-word"> {'{{orgName}}'}</span>
|
|
</Trans>
|
|
);
|
|
|
|
return (
|
|
<Page
|
|
navId="global-users"
|
|
pageNav={{ text: t('org.user-invite-page.text.invite-user', 'Invite user') }}
|
|
subTitle={subTitle}
|
|
>
|
|
<Page.Contents>
|
|
<UserInviteForm />
|
|
</Page.Contents>
|
|
</Page>
|
|
);
|
|
}
|
|
|
|
export default UserInvitePage;
|