Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const overlayStyle = {
color: black,
};

class Overlay extends Component {
class ErrorOverlay extends Component {
iframeWindow: window = null;

getIframeWindow = (element: HTMLDivElement) => {
Expand Down Expand Up @@ -71,4 +71,4 @@ class Overlay extends Component {
}
}

export default Overlay;
export default ErrorOverlay;
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/* @flow */
import React, { PureComponent } from 'react';
import Overlay from '../components/Overlay';
import ErrorOverlay from '../components/ErrorOverlay';
import Footer from '../components/Footer';
import Header from '../components/Header';
import CodeBlock from '../components/CodeBlock';
Expand All @@ -19,11 +19,11 @@ class CompileErrorContainer extends PureComponent {
render() {
const { error } = this.props;
return (
<Overlay>
<ErrorOverlay>
<Header headerText="Failed to compile" />
<CodeBlock main={true} codeHTML={generateAnsiHTML(error)} />
<Footer line1="This error occurred during the build time and cannot be dismissed." />
</Overlay>
</ErrorOverlay>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/* @flow */
import React, { PureComponent } from 'react';
import Overlay from '../components/Overlay';
import ErrorOverlay from '../components/ErrorOverlay';
import CloseButton from '../components/CloseButton';
import NavigationBar from '../components/NavigationBar';
import RuntimeError from './RuntimeError';
Expand Down Expand Up @@ -52,7 +52,7 @@ class RuntimeErrorContainer extends PureComponent {
const { errorRecords, close } = this.props;
const totalErrors = errorRecords.length;
return (
<Overlay shortcutHandler={this.shortcutHandler}>
<ErrorOverlay shortcutHandler={this.shortcutHandler}>
<CloseButton close={close} />
{totalErrors > 1 &&
<NavigationBar
Expand All @@ -69,7 +69,7 @@ class RuntimeErrorContainer extends PureComponent {
line1="This screen is visible only in development. It will not appear if the app crashes in production."
line2="Open your browser’s developer console to further inspect this error."
/>
</Overlay>
</ErrorOverlay>
);
}
}
Expand Down