mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
This commit is contained in:
@@ -87,7 +87,6 @@ interface ErrorAlertProps {
|
||||
source?: ErrorSource;
|
||||
subtitle: ReactNode;
|
||||
title: ReactNode;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export default function ErrorAlert({
|
||||
@@ -97,7 +96,6 @@ export default function ErrorAlert({
|
||||
source = 'dashboard',
|
||||
subtitle,
|
||||
title,
|
||||
description,
|
||||
}: ErrorAlertProps) {
|
||||
const theme = useTheme();
|
||||
|
||||
@@ -118,7 +116,7 @@ export default function ErrorAlert({
|
||||
)}
|
||||
<strong>{title}</strong>
|
||||
</LeftSideContent>
|
||||
{!isExpandable && !description && (
|
||||
{!isExpandable && (
|
||||
<span
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
@@ -129,21 +127,6 @@ export default function ErrorAlert({
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{description && (
|
||||
<div className="error-body">
|
||||
<p>{description}</p>
|
||||
{!isExpandable && (
|
||||
<span
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
className="link"
|
||||
onClick={() => setIsModalOpen(true)}
|
||||
>
|
||||
{t('See more')}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{isExpandable ? (
|
||||
<div className="error-body">
|
||||
<p>{subtitle}</p>
|
||||
|
||||
Reference in New Issue
Block a user