1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-28 14:16:41 +07:00

removed almost all node sagas

This commit is contained in:
Fedor Katurov 2022-01-02 20:44:41 +07:00
parent f76a5a4798
commit 168ba8cc04
30 changed files with 268 additions and 448 deletions

View file

@ -14,6 +14,7 @@ type IProps = HTMLAttributes<HTMLDivElement> & {
group: ICommentGroup;
isSame?: boolean;
canEdit?: boolean;
saveComment: (data: IComment) => Promise<unknown>;
onDelete: (id: IComment['id'], isLocked: boolean) => void;
onShowImageModal: (images: IFile[], index: number) => void;
};
@ -29,6 +30,7 @@ const Comment: FC<IProps> = memo(
canEdit,
onDelete,
onShowImageModal,
saveComment,
...props
}) => {
return (
@ -50,6 +52,7 @@ const Comment: FC<IProps> = memo(
return (
<CommentContent
saveComment={saveComment}
nodeId={nodeId}
comment={comment}
key={comment.id}