Просмотр исходного кода

update DeleteCommentModal for fadeout

jam411 3 лет назад
Родитель
Сommit
dba24206bc

+ 0 - 1
packages/app/src/components/PageComment.tsx

@@ -97,7 +97,6 @@ export const PageComment: FC<PageCommentProps> = memo((props:PageCommentProps):
   }, []);
 
   const onCancelDeleteComment = useCallback(() => {
-    setCommentToBeDeleted(null);
     setIsDeleteConfirmModalShown(false);
   }, []);
 

+ 1 - 1
packages/app/src/components/PageComment/DeleteCommentModal.tsx

@@ -16,7 +16,7 @@ export type DeleteCommentModalProps = {
   isShown: boolean,
   comment: ICommentHasId,
   errorMessage: string,
-  cancel: () => void, // for cancel evnet handling
+  cancel: (value: any) => void, // for cancel evnet handling
   confirmedToDelete: () => void, // for confirmed event handling
 }