Commit 51d0df49 authored by Tharaka Wijebandara's avatar Tharaka Wijebandara Committed by Dan Abramov
Browse files

Rename Overlay to ErrorOvelay (#3051)

parent 270b1dc5
Showing with 8 additions and 8 deletions
+8 -8
......@@ -31,7 +31,7 @@ const overlayStyle = {
color: black,
};
class Overlay extends Component {
class ErrorOverlay extends Component {
iframeWindow: window = null;
getIframeWindow = (element: HTMLDivElement) => {
......@@ -71,4 +71,4 @@ class Overlay extends Component {
}
}
export default Overlay;
export default ErrorOverlay;
......@@ -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';
......@@ -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>
);
}
}
......
......@@ -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';
......@@ -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
......@@ -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>
);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment