From 36ee1571b62a40858ee03ba4493de5909d40df73 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 25 Mar 2024 09:55:48 +0000 Subject: [PATCH] EmptyState: Rename "search" variant to "not-found" (#85062) * rename "search" variant to "not-found" * run i18n:extract --- packages/grafana-ui/src/components/EmptyState/EmptyState.mdx | 5 +++-- .../src/components/EmptyState/EmptyState.story.tsx | 1 + packages/grafana-ui/src/components/EmptyState/EmptyState.tsx | 4 ++-- public/locales/en-US/grafana.json | 2 +- public/locales/pseudo-LOCALE/grafana.json | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/grafana-ui/src/components/EmptyState/EmptyState.mdx b/packages/grafana-ui/src/components/EmptyState/EmptyState.mdx index bf57bfc37ed..e62d0038338 100644 --- a/packages/grafana-ui/src/components/EmptyState/EmptyState.mdx +++ b/packages/grafana-ui/src/components/EmptyState/EmptyState.mdx @@ -5,7 +5,7 @@ import { EmptyState } from './EmptyState'; Use an empty state to communicate to the user that there is no data to display, or that a search query returned no results. -## variant="search" +## variant="not-found" ### When to use @@ -16,7 +16,7 @@ There are sensible defaults for the image and message, so in most cases you can ```jsx import { EmptyState } from '@grafana/ui'; -; +; ``` ### Providing custom overrides @@ -30,6 +30,7 @@ import { Button, EmptyState } from '@grafana/ui'; button={