diff --git a/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx b/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx index 698476fe93..e2c48fe521 100644 --- a/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx +++ b/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx @@ -31,9 +31,9 @@ import { InfoCard, Progress, useApi, + WarningPanel, } from '@backstage/core'; import { Box, Typography } from '@material-ui/core'; -import { Alert } from '@material-ui/lab'; import ZoomOutMap from '@material-ui/icons/ZoomOutMap'; import React from 'react'; import { useAsync } from 'react-use'; @@ -138,7 +138,11 @@ export function SystemDiagramCard() { if (loading) { return ; } else if (error) { - return {error.message}; + return ( + + {error.message} + + ); } return (