Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Fix up styling of error boundaries for use within ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Aug 30, 2018
1 parent 5c46a0e commit 4657431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/api-explorer/src/EndpointErrorBoundary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EndpointErrorBoundary extends React.Component {
</a>{' '}
with the following error:
</h3>
<pre>
<pre style={{ whiteSpace: 'pre-wrap' }}>
{this.state.error && this.state.error.toString()}
{this.state.info.componentStack}
</pre>
Expand Down
4 changes: 2 additions & 2 deletions packages/api-explorer/src/ErrorBoundary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class ErrorBoundary extends React.Component {
render() {
if (this.state.error) {
return (
<div style={{ paddingLeft: '2%' }}>
<div style={{ paddingLeft: '2%', width: '75%' }}>
<h3>
There was an error rendering the API Explorer. If you are the owner of this project
please contact{' '}
<a href="mailto:support@readme.io?subject=API Explorer Error">support@readme.io</a> with
the following error:
</h3>
<pre>
<pre style={{ whiteSpace: 'pre-wrap' }}>
{this.state.error && this.state.error.toString()}
{this.state.info.componentStack}
</pre>
Expand Down

0 comments on commit 4657431

Please sign in to comment.