fix: Display Error Messages in DB Connection Modal (#22200)

This commit is contained in:
AAfghahi
2022-12-05 11:02:17 -07:00
committed by GitHub
parent f3bf3ec2ed
commit aafb993ee2
3 changed files with 29 additions and 23 deletions

View File

@@ -132,7 +132,7 @@ export default function ErrorAlert({
{description && (
<div className="error-body">
<p>{description}</p>
{!isExpandable && body && (
{!isExpandable && (
<span
role="button"
tabIndex={0}
@@ -213,7 +213,10 @@ export default function ErrorAlert({
>
<>
<p>{subtitle}</p>
<br />
{/* This break was in the original design of the modal but
the spacing looks really off if there is only
subtitle or a body */}
{subtitle && body && <br />}
{body}
</>
</ErrorModal>