jam411 3 ani în urmă
părinte
comite
614cdd0495
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      packages/app/src/components/PageComment/Comment.tsx

+ 3 - 3
packages/app/src/components/PageComment/Comment.tsx

@@ -67,7 +67,7 @@ export const Comment = (props: CommentProps): JSX.Element => {
     return creator.username === currentUser.username;
   };
 
-  const getRootClassName = (comment) => {
+  const getRootClassName = (comment: ICommentHasId) => {
     let className = 'page-comment flex-column';
 
     if (comment.revision === currentRevisionId) {
@@ -87,11 +87,11 @@ export const Comment = (props: CommentProps): JSX.Element => {
     return className;
   };
 
-  const deleteBtnClickedHandler = (comment) => {
+  const deleteBtnClickedHandler = (comment: ICommentHasId) => {
     deleteBtnClicked(comment);
   };
 
-  const renderText = (comment) => {
+  const renderText = (comment: string) => {
     return <span style={{ whiteSpace: 'pre-wrap' }}>{comment}</span>;
   };