From 5278ecd33eb4f152877393c2e17881c592799661 Mon Sep 17 00:00:00 2001 From: Tharaka Wijebandara Date: Sat, 2 Sep 2017 06:29:37 +0530 Subject: [PATCH] Rename Overlay to ErrorOvelay (#3051) --- .../src/components/{Overlay.js => ErrorOverlay.js} | 4 ++-- .../src/containers/CompileErrorContainer.js | 6 +++--- .../src/containers/RuntimeErrorContainer.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename packages/react-error-overlay/src/components/{Overlay.js => ErrorOverlay.js} (96%) diff --git a/packages/react-error-overlay/src/components/Overlay.js b/packages/react-error-overlay/src/components/ErrorOverlay.js similarity index 96% rename from packages/react-error-overlay/src/components/Overlay.js rename to packages/react-error-overlay/src/components/ErrorOverlay.js index 4fe530b6fee..446105dad2e 100644 --- a/packages/react-error-overlay/src/components/Overlay.js +++ b/packages/react-error-overlay/src/components/ErrorOverlay.js @@ -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; diff --git a/packages/react-error-overlay/src/containers/CompileErrorContainer.js b/packages/react-error-overlay/src/containers/CompileErrorContainer.js index bd193eb50b4..a3e89fe591d 100644 --- a/packages/react-error-overlay/src/containers/CompileErrorContainer.js +++ b/packages/react-error-overlay/src/containers/CompileErrorContainer.js @@ -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 ( - +