mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Cleaned up ContentBox and PopupBox
This commit is contained in:
parent
65dd6bd1d6
commit
527abdbcd6
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ import {ROOT_DIV_ID} from '../utils/constants';
|
|||
import Content from './content/Content';
|
||||
import Loading from './content/Loading';
|
||||
|
||||
const ContentBox = (props) => {
|
||||
const ContentBox = ({done}) => {
|
||||
const luminance = (r, g, b) => {
|
||||
var a = [r, g, b].map(function (v) {
|
||||
v /= 255;
|
||||
|
@ -48,7 +48,7 @@ const ContentBox = (props) => {
|
|||
|
||||
return (
|
||||
<section className={'ghost-display ' + containerClass} style={style} data-testid="content-box">
|
||||
{props.done ? <Content /> : <Loading />}
|
||||
{done ? <Content /> : <Loading />}
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@ import AppContext from '../AppContext';
|
|||
import Pages from '../pages';
|
||||
import GenericPopup from './popups/GenericPopup';
|
||||
|
||||
export default function PopupBox(props) {
|
||||
export default function PopupBox() {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue