Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor API into new api package #3543

Merged
merged 21 commits into from
Oct 27, 2020
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion packages/component/src/ErrorBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const ErrorBox = ({ error, type }) => {
<ScreenReaderText text={localize('ACTIVITY_ERROR_BOX_TITLE')} />
<div className={errorBoxStyleSet}>
<div>{type}</div>
<pre>{error.stack}</pre>
{/* The callstack between production and development are different, thus, we should hide it for visual regression test */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{/* The callstack between production and development are different, thus, we should hide it for visual regression test */}
{/* The callstack between production and development are different; therefore we should hide it for visual regression tests */}

<details>
<summary>{error.message}</summary>
<pre>{error.stack}</pre>
</details>
</div>
</React.Fragment>
);
Expand Down