File tree 3 files changed +8
-8
lines changed
packages/react-error-overlay/src
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const overlayStyle = {
31
31
color : black ,
32
32
} ;
33
33
34
- class Overlay extends Component {
34
+ class ErrorOverlay extends Component {
35
35
iframeWindow : window = null ;
36
36
37
37
getIframeWindow = ( element : HTMLDivElement ) => {
@@ -71,4 +71,4 @@ class Overlay extends Component {
71
71
}
72
72
}
73
73
74
- export default Overlay ;
74
+ export default ErrorOverlay ;
Original file line number Diff line number Diff line change 9
9
10
10
/* @flow */
11
11
import React , { PureComponent } from 'react' ;
12
- import Overlay from '../components/Overlay ' ;
12
+ import ErrorOverlay from '../components/ErrorOverlay ' ;
13
13
import Footer from '../components/Footer' ;
14
14
import Header from '../components/Header' ;
15
15
import CodeBlock from '../components/CodeBlock' ;
@@ -19,11 +19,11 @@ class CompileErrorContainer extends PureComponent {
19
19
render ( ) {
20
20
const { error } = this . props ;
21
21
return (
22
- < Overlay >
22
+ < ErrorOverlay >
23
23
< Header headerText = "Failed to compile" />
24
24
< CodeBlock main = { true } codeHTML = { generateAnsiHTML ( error ) } />
25
25
< Footer line1 = "This error occurred during the build time and cannot be dismissed." />
26
- </ Overlay >
26
+ </ ErrorOverlay >
27
27
) ;
28
28
}
29
29
}
Original file line number Diff line number Diff line change 9
9
10
10
/* @flow */
11
11
import React , { PureComponent } from 'react' ;
12
- import Overlay from '../components/Overlay ' ;
12
+ import ErrorOverlay from '../components/ErrorOverlay ' ;
13
13
import CloseButton from '../components/CloseButton' ;
14
14
import NavigationBar from '../components/NavigationBar' ;
15
15
import RuntimeError from './RuntimeError' ;
@@ -52,7 +52,7 @@ class RuntimeErrorContainer extends PureComponent {
52
52
const { errorRecords, close } = this . props ;
53
53
const totalErrors = errorRecords . length ;
54
54
return (
55
- < Overlay shortcutHandler = { this . shortcutHandler } >
55
+ < ErrorOverlay shortcutHandler = { this . shortcutHandler } >
56
56
< CloseButton close = { close } />
57
57
{ totalErrors > 1 &&
58
58
< NavigationBar
@@ -69,7 +69,7 @@ class RuntimeErrorContainer extends PureComponent {
69
69
line1 = "This screen is visible only in development. It will not appear if the app crashes in production."
70
70
line2 = "Open your browser’s developer console to further inspect this error."
71
71
/>
72
- </ Overlay >
72
+ </ ErrorOverlay >
73
73
) ;
74
74
}
75
75
}
You can’t perform that action at this time.
0 commit comments