1- import { useState , useEffect } from "react" ;
1+ import React , { useState , useEffect } from "react" ;
22import {
33 getComments ,
44 getCommentReasons ,
@@ -60,7 +60,7 @@ const EventDetailsCommentsTab = ({
6060 const user = useAppSelector ( state => getUserInformation ( state ) ) ;
6161
6262 const saveComment = ( commentText : string , commentReason : string ) => {
63- dispatch ( saveNewComment ( { eventId, commentText, commentReason } ) ) . then ( successful => {
63+ dispatch ( saveNewComment ( { eventId, commentText, commentReason} ) ) . then ( successful => {
6464 if ( successful ) {
6565 dispatch ( fetchComments ( eventId ) ) ;
6666 setNewCommentText ( "" ) ;
@@ -84,7 +84,7 @@ const EventDetailsCommentsTab = ({
8484 } ;
8585
8686 const saveReply = ( originalComment : Comment , reply : string , isResolved : boolean ) => {
87- dispatch ( saveNewCommentReply ( { eventId, commentId : originalComment . id , replyText : reply , commentResolved : isResolved } ) ) . then (
87+ dispatch ( saveNewCommentReply ( { eventId, commentId : originalComment . id , replyText : reply , commentResolved : isResolved } ) ) . then (
8888 success => {
8989 if ( success ) {
9090 dispatch ( fetchComments ( eventId ) ) ;
@@ -95,15 +95,15 @@ const EventDetailsCommentsTab = ({
9595 } ;
9696
9797 const deleteComment = ( comment : Comment ) => {
98- dispatch ( deleteOneComment ( { eventId, commentId : comment . id } ) ) . then ( success => {
98+ dispatch ( deleteOneComment ( { eventId, commentId : comment . id } ) ) . then ( success => {
9999 if ( success ) {
100100 dispatch ( fetchComments ( eventId ) ) ;
101101 }
102102 } ) ;
103103 } ;
104104
105105 const deleteReply = ( comment : Comment , reply : CommentReply ) => {
106- dispatch ( deleteCommentReply ( { eventId, commentId : comment . id , replyId : reply . id } ) ) . then ( success => {
106+ dispatch ( deleteCommentReply ( { eventId, commentId : comment . id , replyId : reply . id } ) ) . then ( success => {
107107 if ( success ) {
108108 dispatch ( fetchComments ( eventId ) ) ;
109109 }
@@ -251,13 +251,13 @@ const EventDetailsCommentsTab = ({
251251 required = { true }
252252 handleChange = { element => {
253253 if ( element ) {
254- setCommentReason ( element . value ) ;
254+ setCommentReason ( element . value )
255255 }
256256 } }
257257 placeholder = { t (
258258 "EVENTS.EVENTS.DETAILS.COMMENTS.SELECTPLACEHOLDER" ,
259259 ) }
260- customCSS = { { width : 200 , optionPaddingTop : 5 , optionLineHeight : "105%" } }
260+ customCSS = { { width : 200 , optionPaddingTop : 5 , optionLineHeight : "105%" } }
261261 />
262262 </ div >
263263
@@ -363,7 +363,7 @@ const EventDetailsCommentsTab = ({
363363 originalComment ,
364364 commentReplyText ,
365365 commentReplyIsResolved ,
366- ) ;
366+ )
367367 }
368368 } }
369369 >
0 commit comments