From e5874326444b4b68652143ac0908704722942af8 Mon Sep 17 00:00:00 2001 From: Mihai Nicolae Date: Fri, 25 Oct 2024 13:01:21 +0300 Subject: [PATCH] chore: format --- tabs/src/components/activity/EventList.jsx | 106 ++++++++++----------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/tabs/src/components/activity/EventList.jsx b/tabs/src/components/activity/EventList.jsx index b258636..35b231f 100644 --- a/tabs/src/components/activity/EventList.jsx +++ b/tabs/src/components/activity/EventList.jsx @@ -54,8 +54,8 @@ export function EventList({ [loading, setLoading] = useState(false); const handleRegistrationClose = () => { - setRegistrationVisible(false); - }, + setRegistrationVisible(false); + }, handleRegisterOthersClose = () => { setRegisterOthersVisible(false); }; @@ -68,48 +68,48 @@ export function EventList({ }; const renderCountCell = (params) => { - const row = params.row; - return ( - <> - {row.IsPast && ( - - - { - let url = row.ParticipantsUrl; - if (url) { - row.NoOfParticipants > 0 && - (url = - url + '&FilterField3=Participated&FilterValue3=1&FilterType3=Boolean'); - window.open(url, '_blank'); - } - }} - > - {row.NoOfParticipants > 0 ? row.NoOfParticipants : 'N/A'} - - - - )} - {(row.IsUpcoming || row.IsCurrent) && row.NoOfRegistered > 0 && ( - - - { - params.row.RegisteredUrl && window.open(params.row.RegisteredUrl, '_blank'); - }} - > - {params.row.NoOfRegistered} - - - - )} - - ); - }, + const row = params.row; + return ( + <> + {row.IsPast && ( + + + { + let url = row.ParticipantsUrl; + if (url) { + row.NoOfParticipants > 0 && + (url = + url + '&FilterField3=Participated&FilterValue3=1&FilterType3=Boolean'); + window.open(url, '_blank'); + } + }} + > + {row.NoOfParticipants > 0 ? row.NoOfParticipants : 'N/A'} + + + + )} + {(row.IsUpcoming || row.IsCurrent) && row.NoOfRegistered > 0 && ( + + + { + params.row.RegisteredUrl && window.open(params.row.RegisteredUrl, '_blank'); + }} + > + {params.row.NoOfRegistered} + + + + )} + + ); + }, renderMeetingTitle = (params) => { const meetingType = params.row.MeetingType?.toLowerCase(), isHybrid = meetingType == 'hybrid', @@ -312,9 +312,9 @@ export function EventList({ }; const handleCellClick = (groups) => { - setTagCellOpen(true); - setSelectedGroups(groups); - }, + setTagCellOpen(true); + setSelectedGroups(groups); + }, handleTagDialogClose = () => { setTagCellOpen(false); }; @@ -353,12 +353,12 @@ export function EventList({ }, ]; const participantsColumn = { - field: 'NoOfParticipants', - headerName: 'Participants', - align: 'center', - width: '100', - renderCell: renderCountCell, - }, + field: 'NoOfParticipants', + headerName: 'Participants', + align: 'center', + width: '100', + renderCell: renderCountCell, + }, registrationsColumn = { field: 'NoOfRegistered', headerName: 'Enrolled',