@@ -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 ( "" ) ;
@@ -85,25 +85,25 @@ const EventDetailsCommentsTab = ({
8585
8686 const saveReply = ( originalComment : Comment , reply : string , isResolved : boolean ) => {
8787 dispatch ( saveNewCommentReply ( { eventId, commentId : originalComment . id , replyText : reply , commentResolved : isResolved } ) ) . then (
88- ( success ) => {
88+ success => {
8989 if ( success ) {
9090 dispatch ( fetchComments ( eventId ) ) ;
9191 exitReplyMode ( ) ;
9292 }
93- }
93+ } ,
9494 ) ;
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 }
@@ -151,7 +151,7 @@ const EventDetailsCommentsTab = ({
151151 { /* links with performable actions for the comment */ }
152152 { hasAccess (
153153 "ROLE_UI_EVENTS_DETAILS_COMMENTS_DELETE" ,
154- user
154+ user ,
155155 ) && (
156156 < ButtonLikeAnchor
157157 onClick = { ( ) => deleteComment ( comment ) }
@@ -162,7 +162,7 @@ const EventDetailsCommentsTab = ({
162162 ) }
163163 { hasAccess (
164164 "ROLE_UI_EVENTS_DETAILS_COMMENTS_REPLY" ,
165- user
165+ user ,
166166 ) && (
167167 < ButtonLikeAnchor
168168 onClick = {
@@ -205,7 +205,7 @@ const EventDetailsCommentsTab = ({
205205 { /* link for deleting the reply */ }
206206 { hasAccess (
207207 "ROLE_UI_EVENTS_DETAILS_COMMENTS_DELETE" ,
208- user
208+ user ,
209209 ) && (
210210 < ButtonLikeAnchor
211211 onClick = { ( ) =>
@@ -234,11 +234,11 @@ const EventDetailsCommentsTab = ({
234234 { /* text field */ }
235235 < textarea
236236 value = { newCommentText }
237- onChange = { ( comment ) =>
237+ onChange = { comment =>
238238 setNewCommentText ( comment . target . value )
239239 }
240240 placeholder = { t (
241- "EVENTS.EVENTS.DETAILS.COMMENTS.PLACEHOLDER"
241+ "EVENTS.EVENTS.DETAILS.COMMENTS.PLACEHOLDER" ,
242242 ) }
243243 > </ textarea >
244244
@@ -249,13 +249,13 @@ const EventDetailsCommentsTab = ({
249249 text = { t ( commentReason as ParseKeys ) }
250250 options = { Object . entries ( commentReasons ) . map ( ( [ key , value ] ) => ( { label : value , value : key } ) ) }
251251 required = { true }
252- handleChange = { ( element ) => {
252+ handleChange = { element => {
253253 if ( element ) {
254254 setCommentReason ( element . value )
255255 }
256256 } }
257257 placeholder = { t (
258- "EVENTS.EVENTS.DETAILS.COMMENTS.SELECTPLACEHOLDER"
258+ "EVENTS.EVENTS.DETAILS.COMMENTS.SELECTPLACEHOLDER" ,
259259 ) }
260260 customCSS = { { width : 200 , optionPaddingTop : 5 , optionLineHeight : "105%" } }
261261 />
@@ -296,7 +296,7 @@ const EventDetailsCommentsTab = ({
296296 { /* text field */ }
297297 < textarea
298298 value = { commentReplyText }
299- onChange = { ( reply ) =>
299+ onChange = { reply =>
300300 setCommentReplyText ( reply . target . value )
301301 }
302302 placeholder = {
@@ -309,7 +309,7 @@ const EventDetailsCommentsTab = ({
309309 { /* 'resolved' checkbox */ }
310310 { hasAccess (
311311 "ROLE_UI_EVENTS_DETAILS_COMMENTS_RESOLVE" ,
312- user
312+ user ,
313313 ) && (
314314 < >
315315 < div className = "resolved-checkbox" >
@@ -324,7 +324,7 @@ const EventDetailsCommentsTab = ({
324324 < label >
325325 {
326326 t (
327- "EVENTS.EVENTS.DETAILS.COMMENTS.RESOLVED"
327+ "EVENTS.EVENTS.DETAILS.COMMENTS.RESOLVED" ,
328328 ) /* Resolved */
329329 }
330330 </ label >
@@ -336,7 +336,7 @@ const EventDetailsCommentsTab = ({
336336 < button className = "cancel" onClick = { ( ) => exitReplyMode ( ) } >
337337 {
338338 t (
339- "EVENTS.EVENTS.DETAILS.COMMENTS.CANCEL_REPLY"
339+ "EVENTS.EVENTS.DETAILS.COMMENTS.CANCEL_REPLY" ,
340340 ) /* Cancel */
341341 }
342342 </ button >
@@ -362,7 +362,7 @@ const EventDetailsCommentsTab = ({
362362 saveReply (
363363 originalComment ,
364364 commentReplyText ,
365- commentReplyIsResolved
365+ commentReplyIsResolved ,
366366 )
367367 }
368368 } }
0 commit comments