1
0
mirror of https://github.com/ansible/awx.git synced 2026-02-05 09:45:21 +01:00

Merge pull request #11902 from keithjgrant/error-detail-formatting

add line wrap formatting to ErrorDetail
This commit is contained in:
Kersom
2022-03-15 08:30:12 -04:00
committed by GitHub

View File

@@ -1,3 +1,4 @@
import 'styled-components/macro';
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
@@ -68,7 +69,11 @@ function ErrorDetail({ error }) {
);
};
const renderStack = () => <CardBody>{error.stack}</CardBody>;
const renderStack = () => (
<CardBody css="white-space: pre; font-family: var(--pf-global--FontFamily--monospace)">
{error.stack}
</CardBody>
);
return (
<Expandable