From e8eeacac9ef747acfe20c8d7a3fa1ab99b5a972c Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 31 Aug 2022 15:31:38 +0200 Subject: [PATCH] Renamed PopupModal to PopupBox refs https://github.com/TryGhost/Team/issues/1858 - PopupBox better reflects that it contains a Popup and is not a Popup - In line with ContentBox, that contains the iframe with the comments content --- apps/comments-ui/src/App.js | 4 ++-- .../comments-ui/src/components/{PopupModal.js => PopupBox.js} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename apps/comments-ui/src/components/{PopupModal.js => PopupBox.js} (97%) diff --git a/apps/comments-ui/src/App.js b/apps/comments-ui/src/App.js index 463ed15899..47d4e1a7ae 100644 --- a/apps/comments-ui/src/App.js +++ b/apps/comments-ui/src/App.js @@ -6,7 +6,7 @@ import AppContext from './AppContext'; import {hasMode} from './utils/check-mode'; import setupGhostApi from './utils/api'; import ContentBox from './components/ContentBox'; -import PopupModal from './components/PopupModal'; +import PopupBox from './components/PopupBox'; function AuthFrame({adminUrl, onLoad}) { const iframeStyle = { @@ -305,7 +305,7 @@ export default class App extends React.Component { - + ); diff --git a/apps/comments-ui/src/components/PopupModal.js b/apps/comments-ui/src/components/PopupBox.js similarity index 97% rename from apps/comments-ui/src/components/PopupModal.js rename to apps/comments-ui/src/components/PopupBox.js index 1673013c54..224200ec2e 100644 --- a/apps/comments-ui/src/components/PopupModal.js +++ b/apps/comments-ui/src/components/PopupBox.js @@ -3,7 +3,7 @@ import AppContext from '../AppContext'; import Pages from '../pages'; import GenericPopup from './popups/GenericPopup'; -export default function PopupModal(props) { +export default function PopupBox(props) { const {popup} = useContext(AppContext); // To make sure we can properly animate a popup that goes away, we keep a state of the last visible popup