mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
Updating the store - Fully Working 🎉
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Linkify from 'react-linkify';
|
||||
|
||||
const name = 'talk-plugin-comment-content';
|
||||
@@ -21,4 +22,8 @@ const CommentContent = ({ comment }) => {
|
||||
);
|
||||
};
|
||||
|
||||
CommentContent.propTypes = {
|
||||
comment: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
export default CommentContent;
|
||||
|
||||
@@ -45,7 +45,7 @@ class Editor extends React.Component {
|
||||
|
||||
render() {
|
||||
const { id, classNames } = this.props;
|
||||
console.log(this.props);
|
||||
|
||||
return (
|
||||
<div
|
||||
id={id}
|
||||
|
||||
@@ -5,6 +5,7 @@ import CommentContent from '../components/CommentContent';
|
||||
export default withFragments({
|
||||
comment: gql`
|
||||
fragment TalkPluginRTE_CommentContent_comment on Comment {
|
||||
body
|
||||
htmlBody
|
||||
}
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user