From aba602380db0f9a18a5dc9517f90b5d7a0a49bb1 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:02:21 +0200 Subject: [PATCH] add simple loading icon --- .idea/workspace.xml | 24 ++++++++++++++---------- src/components/Sponsors/index.js | 18 ++++++++++++++++-- 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5640dda1d..68efe4631 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,13 +4,9 @@ - - - + - - - + @@ -148,7 +144,7 @@ - + 1660418841831 @@ -339,7 +335,15 @@ 1673976828238 - + + + 1713463473768 + + + + 1713463473768 + + @@ -357,7 +361,6 @@ - @@ -382,7 +385,8 @@ - + + diff --git a/src/components/Sponsors/index.js b/src/components/Sponsors/index.js index 58ff11e2f..f53fdd26d 100644 --- a/src/components/Sponsors/index.js +++ b/src/components/Sponsors/index.js @@ -21,12 +21,12 @@ export default function Sponsors() { } asyncFunction() }, []) - return ( + return sponsors.data ? ( {sponsors.data?.account?.contributors?.nodes.filter(sp => sp.totalAmountDonated > 0).map((sponsor, index) => ( - + {sponsor.name}{sponsor.isAdmin && ' (admin)'} {sponsor.publicMessage} @@ -34,6 +34,20 @@ export default function Sponsors() { ))} + ) : +} + +function LoadingIcon({ size }) { + return ( + + + + + + ) }
{sponsor.publicMessage}