mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 00:41:08 +08:00

* i18n: everything should target @grafana/i18n * wip * chore: updates after PR feedback * Trigger build * Trigger build * Trigger build * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: revert all flaky tests * chore: some incorrect usages of useTranslate
24 lines
553 B
TypeScript
24 lines
553 B
TypeScript
import { useTranslate } from '@grafana/i18n';
|
|
import { Button } from '@grafana/ui';
|
|
|
|
import { performInviteUserClick } from './utils';
|
|
|
|
export function InviteUserButton() {
|
|
const { t } = useTranslate();
|
|
|
|
return (
|
|
<Button
|
|
icon="add-user"
|
|
size="sm"
|
|
variant="secondary"
|
|
fill="solid"
|
|
fullWidth
|
|
onClick={() => {
|
|
performInviteUserClick('bottom_mega_menu', 'invite-user-bottom-mega-menu');
|
|
}}
|
|
>
|
|
{t('navigation.invite-user.invite-new-member-button', 'Invite new member')}
|
|
</Button>
|
|
);
|
|
}
|