From 2fa6c43aa84357e1ea8837d6d2400dfa801b476d Mon Sep 17 00:00:00 2001 From: Scott Sundahl Date: Tue, 10 Oct 2023 16:57:59 -0600 Subject: [PATCH] fix javascript errors --- .../ParticipantApprovalForm.tsx | 7 +- .../ParticipantRequestItem.tsx | 78 +++++++++---------- 2 files changed, 44 insertions(+), 41 deletions(-) diff --git a/src/web/components/ParticipantRequests/ParticipantApprovalForm.tsx b/src/web/components/ParticipantRequests/ParticipantApprovalForm.tsx index adcbab483..21fa37907 100644 --- a/src/web/components/ParticipantRequests/ParticipantApprovalForm.tsx +++ b/src/web/components/ParticipantRequests/ParticipantApprovalForm.tsx @@ -126,7 +126,12 @@ function ParticipantApprovalForm({ {!selectedSite && ( {siteSearchResults?.map((s) => ( - ))} diff --git a/src/web/components/ParticipantRequests/ParticipantRequestItem.tsx b/src/web/components/ParticipantRequests/ParticipantRequestItem.tsx index 95adb9c24..c8914b9c4 100644 --- a/src/web/components/ParticipantRequests/ParticipantRequestItem.tsx +++ b/src/web/components/ParticipantRequests/ParticipantRequestItem.tsx @@ -43,45 +43,43 @@ export function ParticipantRequestItem({ }; return ( - <> - - -
{participant.name}
- - -
{getParticipantTypes(participant.types)}
- - -
{participant.requestingUser.fullName}
- - -
{participant.requestingUser.email}
- - -
{participant.requestingUser.role}
- - -
- {hasError && } - -
- - - - - - + + +
{participant.name}
+ + +
{getParticipantTypes(participant.types)}
+ + +
{participant.requestingUser.fullName}
+ + +
{participant.requestingUser.email}
+ + +
{participant.requestingUser.role}
+ + +
+ {hasError && } + + + + +
+ + ); }