chore: Empty state refactor (#31860)

This commit is contained in:
Maxime Beauchemin
2025-01-22 13:20:38 -08:00
committed by GitHub
parent 7482b20f7b
commit fcd166149c
48 changed files with 530 additions and 658 deletions

View File

@@ -30,7 +30,7 @@ import Tabs from 'src/components/Tabs';
import Button from 'src/components/Button';
import { Select } from 'src/components';
import { Tooltip } from 'src/components/Tooltip';
import { EmptyStateSmall } from 'src/components/EmptyState';
import { EmptyState } from 'src/components/EmptyState';
import { Form, FormItem } from 'src/components/Form';
import { SQLEditor } from 'src/components/AsyncAceEditor';
import sqlKeywords from 'src/SqlLab/utils/sqlKeywords';
@@ -389,16 +389,18 @@ export default class AdhocMetricEditPopover extends PureComponent {
/>
</FormItem>
) : datasource.type === DatasourceType.Table ? (
<EmptyStateSmall
<EmptyState
image="empty.svg"
size="small"
title={t('No saved metrics found')}
description={t(
'Add metrics to dataset in "Edit datasource" modal',
)}
/>
) : (
<EmptyStateSmall
<EmptyState
image="empty.svg"
size="small"
title={t('No saved metrics found')}
description={
<>