diff --git a/public/app/features/admin/UserListAdminPage.tsx b/public/app/features/admin/UserListAdminPage.tsx index 8b9c42b211c..6fbbc543a56 100644 --- a/public/app/features/admin/UserListAdminPage.tsx +++ b/public/app/features/admin/UserListAdminPage.tsx @@ -7,6 +7,7 @@ import { selectors as e2eSelectors } from '@grafana/e2e-selectors/src'; import { LinkButton, RadioButtonGroup, useStyles2, FilterInput, EmptyState } from '@grafana/ui'; import { Page } from 'app/core/components/Page/Page'; import { contextSrv } from 'app/core/core'; +import { t } from 'app/core/internationalization'; import { AccessControlAction, StoreState, UserFilter } from '../../types'; @@ -99,7 +100,7 @@ const UserListAdminPageUnConnected = ({ {!isLoading && users.length === 0 ? ( - + ) : ( { onDelete={this.onDeleteApiKey} /> ) : ( - + )} {migrationResult && ( diff --git a/public/app/features/commandPalette/CommandPalette.tsx b/public/app/features/commandPalette/CommandPalette.tsx index e6eb57ed7ab..a1e36d3a20b 100644 --- a/public/app/features/commandPalette/CommandPalette.tsx +++ b/public/app/features/commandPalette/CommandPalette.tsx @@ -121,7 +121,7 @@ const RenderResults = ({ isFetchingSearchResults, searchResults }: RenderResults const showEmptyState = !isFetchingSearchResults && items.length === 0; return showEmptyState ? ( - + ) : ( + ) : (
    {getDataSourcesList()}
)} diff --git a/public/app/features/plugins/admin/components/PluginList.tsx b/public/app/features/plugins/admin/components/PluginList.tsx index 587c324a043..76ad72cc2b4 100644 --- a/public/app/features/plugins/admin/components/PluginList.tsx +++ b/public/app/features/plugins/admin/components/PluginList.tsx @@ -3,6 +3,7 @@ import { useLocation } from 'react-router-dom'; import { config } from '@grafana/runtime'; import { EmptyState, Grid } from '@grafana/ui'; +import { t } from 'app/core/internationalization'; import { CatalogPlugin, PluginListDisplayMode } from '../types'; @@ -20,7 +21,7 @@ export const PluginList = ({ plugins, displayMode, isLoading }: Props) => { const pathName = config.appSubUrl + (pathname.endsWith('/') ? pathname.slice(0, -1) : pathname); if (!isLoading && plugins.length === 0) { - return ; + return ; } return ( diff --git a/public/app/features/serviceaccounts/ServiceAccountsListPage.tsx b/public/app/features/serviceaccounts/ServiceAccountsListPage.tsx index bc51b94d918..03b8b3a290a 100644 --- a/public/app/features/serviceaccounts/ServiceAccountsListPage.tsx +++ b/public/app/features/serviceaccounts/ServiceAccountsListPage.tsx @@ -8,6 +8,7 @@ import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA'; import { Page } from 'app/core/components/Page/Page'; import config from 'app/core/config'; import { contextSrv } from 'app/core/core'; +import { t } from 'app/core/internationalization'; import { StoreState, ServiceAccountDTO, AccessControlAction, ServiceAccountStateFilter } from 'app/types'; import { ServiceAccountTable } from './ServiceAccountTable'; @@ -209,7 +210,12 @@ export const ServiceAccountsListPageUnconnected = ({ /> - {!isLoading && !noServiceAccountsCreated && serviceAccounts.length === 0 && } + {!isLoading && !noServiceAccountsCreated && serviceAccounts.length === 0 && ( + + )} {!isLoading && noServiceAccountsCreated && ( <> {hasFetched && teams.length === 0 ? ( - + ) : (