From aa34b6f86917732690e7a4c0ed265c3617a45c0d Mon Sep 17 00:00:00 2001 From: dross20 Date: Thu, 24 Oct 2024 19:57:33 -0500 Subject: [PATCH] Add loading icon to be displayed while fetching data from REST API --- src/DonationCharityForm/DonationCharityForm.tsx | 1 + src/DonationForm/DonationForm.css | 16 ++++++++++++++++ src/DonationItemForm/DonationItemForm.tsx | 1 + 3 files changed, 18 insertions(+) diff --git a/src/DonationCharityForm/DonationCharityForm.tsx b/src/DonationCharityForm/DonationCharityForm.tsx index bd6c443..112f787 100644 --- a/src/DonationCharityForm/DonationCharityForm.tsx +++ b/src/DonationCharityForm/DonationCharityForm.tsx @@ -72,6 +72,7 @@ function charityForm () { }}> {selectedOrg.length === org.length ? 'Deselect All' : 'Select All'} + {org.length === 0 ? (
) : <>}
{org.map((org) => (