diff --git a/src/components/comment/Comment/index.tsx b/src/components/comment/Comment/index.tsx index edd5005a..cdd2efe9 100644 --- a/src/components/comment/Comment/index.tsx +++ b/src/components/comment/Comment/index.tsx @@ -11,21 +11,21 @@ import { NEW_COMMENT_CLASSNAME } from '~/constants/comment'; type IProps = HTMLAttributes & { is_empty?: boolean; is_loading?: boolean; - comment_group: ICommentGroup; - is_same?: boolean; - can_edit?: boolean; + group: ICommentGroup; + isSame?: boolean; + canEdit?: boolean; onDelete: (id: IComment['id'], isLocked: boolean) => void; modalShowPhotoswipe: typeof MODAL_ACTIONS.modalShowPhotoswipe; }; const Comment: FC = memo( ({ - comment_group, + group, is_empty, - is_same, + isSame, is_loading, className, - can_edit, + canEdit, onDelete, modalShowPhotoswipe, ...props @@ -33,17 +33,16 @@ const Comment: FC = memo( return (
- {comment_group.comments.map(comment => { + {group.comments.map(comment => { if (comment.deleted_at) { return ; } @@ -52,7 +51,7 @@ const Comment: FC = memo( diff --git a/src/components/containers/CommentWrapper/index.tsx b/src/components/containers/CommentWrapper/index.tsx index 59e5acb1..6b293b51 100644 --- a/src/components/containers/CommentWrapper/index.tsx +++ b/src/components/containers/CommentWrapper/index.tsx @@ -11,7 +11,6 @@ type IProps = DivProps & { user: IUser; isEmpty?: boolean; isLoading?: boolean; - isSame?: boolean; isForm?: boolean; isNew?: boolean; }; @@ -21,7 +20,6 @@ const CommentWrapper: FC = ({ className, isEmpty, isLoading, - isSame, isForm, children, isNew, @@ -31,7 +29,6 @@ const CommentWrapper: FC = ({ className={classNames(styles.wrap, className, { [styles.is_empty]: isEmpty, [styles.is_loading]: isLoading, - [styles.is_same]: isSame, [styles.is_new]: isNew, })} {...props} diff --git a/src/components/node/NodeComments/index.tsx b/src/components/node/NodeComments/index.tsx index cf34966b..446d32ab 100644 --- a/src/components/node/NodeComments/index.tsx +++ b/src/components/node/NodeComments/index.tsx @@ -58,10 +58,11 @@ const NodeComments: FC = memo( {groupped.map(group => ( ))}