Replaced warning with <Typography> with a <WarningPanel> in WorkflowRunDetails.tsx

This commit is contained in:
ebarrios
2020-09-23 17:25:40 +02:00
parent bd26c9c8da
commit 8e2a9082cd
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { Entity } from '@backstage/catalog-model';
import { Link } from '@backstage/core';
import { Link, WarningPanel } from '@backstage/core';
import {
Breadcrumbs,
LinearProgress,
@@ -71,9 +71,9 @@ export const WorkflowRunDetails = ({ entity }: { entity: Entity }) => {
const classes = useStyles();
if (error) {
return (
<Typography variant="h6" color="error">
Failed to load build, {error.message}
</Typography>
<WarningPanel title="Error:">
Failed to load build, {error.message}.
</WarningPanel>
);
} else if (loading) {
return <LinearProgress />;