fix: Revert "#20095 - fix(database): make to display validation error msg when all … (#21277)

This commit is contained in:
Joe Li
2022-08-31 15:56:56 -07:00
committed by GitHub
parent a7fe4850ed
commit 4b221378cc
4 changed files with 12 additions and 50 deletions

View File

@@ -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>