mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-29 06:36:41 +07:00
removed almost all node sagas
This commit is contained in:
parent
f76a5a4798
commit
168ba8cc04
30 changed files with 268 additions and 448 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue