|
@@ -11,7 +11,6 @@ import { useIsAllReplyShown } from '../../stores/context';
|
|
|
import { Comment } from './Comment';
|
|
import { Comment } from './Comment';
|
|
|
|
|
|
|
|
type ReplaycommentsProps = {
|
|
type ReplaycommentsProps = {
|
|
|
- comment: ICommentHasId,
|
|
|
|
|
isReadOnly: boolean,
|
|
isReadOnly: boolean,
|
|
|
replyList: ICommentHasIdList,
|
|
replyList: ICommentHasIdList,
|
|
|
deleteBtnClicked: (comment: ICommentHasId) => void,
|
|
deleteBtnClicked: (comment: ICommentHasId) => void,
|
|
@@ -24,7 +23,7 @@ type ReplaycommentsProps = {
|
|
|
|
|
|
|
|
export const ReplayComments = (props: ReplaycommentsProps): JSX.Element => {
|
|
export const ReplayComments = (props: ReplaycommentsProps): JSX.Element => {
|
|
|
const {
|
|
const {
|
|
|
- comment, isReadOnly, replyList, deleteBtnClicked, onComment, rendererOptions,
|
|
|
|
|
|
|
+ isReadOnly, replyList, deleteBtnClicked, onComment, rendererOptions,
|
|
|
currentPagePath, currentRevisionId, currentRevisionCreatedAt,
|
|
currentPagePath, currentRevisionId, currentRevisionCreatedAt,
|
|
|
} = props;
|
|
} = props;
|
|
|
const { data: isAllReplyShown } = useIsAllReplyShown();
|
|
const { data: isAllReplyShown } = useIsAllReplyShown();
|
|
@@ -37,7 +36,7 @@ export const ReplayComments = (props: ReplaycommentsProps): JSX.Element => {
|
|
|
<Comment
|
|
<Comment
|
|
|
rendererOptions={rendererOptions}
|
|
rendererOptions={rendererOptions}
|
|
|
deleteBtnClicked={deleteBtnClicked}
|
|
deleteBtnClicked={deleteBtnClicked}
|
|
|
- comment={comment}
|
|
|
|
|
|
|
+ comment={reply}
|
|
|
onComment={onComment}
|
|
onComment={onComment}
|
|
|
isReadOnly={isReadOnly}
|
|
isReadOnly={isReadOnly}
|
|
|
currentPagePath={currentPagePath}
|
|
currentPagePath={currentPagePath}
|