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

* i18n: removes useTranslate hook * chore: fix duplicate imports * chore: fix import sorting and hook dependencies
22 lines
509 B
TypeScript
22 lines
509 B
TypeScript
import { t } from '@grafana/i18n';
|
|
import { Button } from '@grafana/ui';
|
|
|
|
import { performInviteUserClick } from './utils';
|
|
|
|
export function InviteUserButton() {
|
|
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>
|
|
);
|
|
}
|