i18n: imports use @grafana/i18n (#105177)
* 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
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useNavigate } from 'react-router-dom-v5-compat';
|
||||
|
||||
import { useTranslate } from '@grafana/i18n';
|
||||
import { ConfirmModal, IconButton } from '@grafana/ui';
|
||||
import { useDeleteRepositoryMutation } from 'app/api/clients/provisioning';
|
||||
import { t } from 'app/core/internationalization';
|
||||
|
||||
interface Props {
|
||||
name: string;
|
||||
@@ -28,6 +28,8 @@ export function DeleteRepositoryButton({ name, redirectTo }: Props) {
|
||||
deleteRepository({ name });
|
||||
}, [deleteRepository, name]);
|
||||
|
||||
const { t } = useTranslate();
|
||||
|
||||
return (
|
||||
<>
|
||||
<IconButton
|
||||
|
||||
Reference in New Issue
Block a user