-
+
{comment.member.name}
@@ -71,12 +71,12 @@ const Comment = (props) => {
leaveTo="opacity-0"
>
-
+
{hasReplies &&
-
+
}
>
diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js
index 7f4f2e5c18..f900f1a29e 100644
--- a/apps/comments-ui/src/components/CommentsBox.js
+++ b/apps/comments-ui/src/components/CommentsBox.js
@@ -31,9 +31,9 @@ class CommentsBox extends React.Component {
}
darkMode() {
- if (this.props.colorScheme === 'light') {
+ if (this.context.colorScheme === 'light') {
return false;
- } else if (this.props.colorScheme === 'dark') {
+ } else if (this.context.colorScheme === 'dark') {
return true;
} else {
const containerColor = getComputedStyle(document.querySelector('#ghost-comments-root').parentNode).getPropertyValue('color');
@@ -48,7 +48,7 @@ class CommentsBox extends React.Component {
}
render() {
- const comments = !this.context.comments ? 'Loading...' : this.context.comments.slice().reverse().map(comment =>
);
+ const comments = !this.context.comments ? 'Loading...' : this.context.comments.slice().reverse().map(comment =>
);
const containerClass = this.darkMode() ? 'dark' : '';
const commentsCount = comments.length;
@@ -60,7 +60,7 @@ class CommentsBox extends React.Component {
{comments}
- { this.context.member ? : }
+ { this.context.member ? : }
);
diff --git a/apps/comments-ui/src/components/Form.js b/apps/comments-ui/src/components/Form.js
index 35434aa8e1..07be331400 100644
--- a/apps/comments-ui/src/components/Form.js
+++ b/apps/comments-ui/src/components/Form.js
@@ -6,7 +6,7 @@ import {useEditor, EditorContent} from '@tiptap/react';
import {getEditorConfig} from '../utils/editor';
const Form = (props) => {
- const {member, postId, dispatchAction, onAction} = useContext(AppContext);
+ const {member, postId, dispatchAction, onAction, avatarSaturation} = useContext(AppContext);
let config;
if (props.isReply) {
@@ -128,7 +128,7 @@ const Form = (props) => {