Skip to content

Commit

Permalink
refactor (#45163)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamraj-git authored Dec 22, 2024
1 parent 2535f4e commit d7b6209
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions airflow/ui/src/components/ErrorAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
import { HStack } from "@chakra-ui/react";
import type { ApiError } from "openapi-gen/requests/core/ApiError";
import type {
HTTPExceptionResponse,
HTTPValidationError,
} from "openapi-gen/requests/types.gen";
import { FiAlertTriangle } from "react-icons/fi";

import { Alert } from "./ui";

Expand Down Expand Up @@ -60,10 +60,10 @@ export const ErrorAlert = ({ error: err }: Props) => {

return (
<Alert status="error">
<FiAlertTriangle />
{error.message}
<br />
{detailMessage}
<HStack align="start" flexDirection="column" gap={2} mt={-1}>
{error.message}
<span>{detailMessage}</span>
</HStack>
</Alert>
);
};

0 comments on commit d7b6209

Please sign in to comment.