mirror of
https://github.com/apache/superset.git
synced 2026-05-31 13:19:23 +00:00
chore: Empty state refactor (#31860)
This commit is contained in:
committed by
GitHub
parent
7482b20f7b
commit
fcd166149c
@@ -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={
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user