From 51d24af5d420c462c8f3e92edca23a3faeef827c Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 21 Mar 2023 01:46:51 +0000 Subject: [PATCH] feat: tip loading status --- showcase.json | 3 ++- src/components/common/PatronModal.tsx | 4 +++- src/pages/dashboard/[subdomain]/tokens.tsx | 4 +++- src/queries/site.ts | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/showcase.json b/showcase.json index 74cdcfae..a03398d9 100644 --- a/showcase.json +++ b/showcase.json @@ -100,5 +100,6 @@ "xn--psu263e-5088", "cryptonerdcn", "fzdwx-2094", - "ovler" + "ovler", + "stz" ] diff --git a/src/components/common/PatronModal.tsx b/src/components/common/PatronModal.tsx index e83af151..28f540cd 100644 --- a/src/components/common/PatronModal.tsx +++ b/src/components/common/PatronModal.tsx @@ -152,7 +152,9 @@ export const PatronModal: React.FC<{ {t(page ? "Latest tipper" : "Latest patrons")}
- {tips.data?.pages?.[0]?.list?.length ? ( + {tips.isLoading ? ( + "Loading..." + ) : tips.data?.pages?.[0]?.list?.length ? ( <>