diff --git a/apps/comments-ui/src/App.js b/apps/comments-ui/src/App.js
index 589140c731..144739edce 100644
--- a/apps/comments-ui/src/App.js
+++ b/apps/comments-ui/src/App.js
@@ -8,6 +8,7 @@ import {hasMode} from './utils/check-mode';
import setupGhostApi from './utils/api';
import CommentsBox from './components/CommentsBox';
import {useEffect} from 'react';
+import Loading from './components/Loading';
function AuthFrame({adminUrl, onLoad, initStatus}) {
useEffect(function () {
@@ -26,12 +27,9 @@ function AuthFrame({adminUrl, onLoad, initStatus}) {
}
function CommentsBoxContainer({done, appVersion}) {
- if (!done) {
- return null;
- }
return (
-
+ {done ? : }
);
}
diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js
index c06cde0cc0..fbf4fd0060 100644
--- a/apps/comments-ui/src/components/CommentsBox.js
+++ b/apps/comments-ui/src/components/CommentsBox.js
@@ -1,7 +1,6 @@
import React, {useContext} from 'react';
import AppContext from '../AppContext';
import NotSignedInBox from './NotSignedInBox';
-import Loading from './Loading';
import Form from './Form';
import Comment from './Comment';
import Pagination from './Pagination';
@@ -57,16 +56,12 @@ const CommentsBox = (props) => {
return (
- {comments ?
- <>
-
- {commentsElements}
-
-
- { member ? (isPaidMember || !paidOnly ? : ) : }
-
- >
- : }
+
+ {commentsElements}
+
+
+ { member ? (isPaidMember || !paidOnly ? : ) : }
+
);
};
diff --git a/apps/comments-ui/src/components/Loading.js b/apps/comments-ui/src/components/Loading.js
index c715252de8..7f1283b4c9 100644
--- a/apps/comments-ui/src/components/Loading.js
+++ b/apps/comments-ui/src/components/Loading.js
@@ -3,7 +3,7 @@ import {ReactComponent as SpinnerIcon} from '../images/icons/spinner.svg';
function Loading() {
return (
-
+
);
diff --git a/apps/comments-ui/src/utils/api.js b/apps/comments-ui/src/utils/api.js
index 8013124711..8e82101469 100644
--- a/apps/comments-ui/src/utils/api.js
+++ b/apps/comments-ui/src/utils/api.js
@@ -203,7 +203,8 @@ function setupGhostApi({siteUrl = window.location.origin, apiUrl, apiKey}) {
let settings = {};
try {
- settings = await api.site.settings();
+ // for now we don't need to fetch all the settings (the ones we need are passed via the script tag data attributes)
+ //settings = await api.site.settings();
site = {
...settings
};
diff --git a/apps/comments-ui/src/utils/helpers.js b/apps/comments-ui/src/utils/helpers.js
index 067bd52d44..bff45a9ff5 100644
--- a/apps/comments-ui/src/utils/helpers.js
+++ b/apps/comments-ui/src/utils/helpers.js
@@ -109,6 +109,6 @@ export function getBundledCssLink({appVersion}) {
if (process.env.NODE_ENV === 'production' && appVersion) {
return `https://unpkg.com/@tryghost/comments-ui@~${appVersion}/umd/main.css`;
} else {
- return 'https://comments.localhost/main.css';
+ return 'http://localhost:4000/main.css';
}
}