From 1361678a5e7ff5688957ad8f7f800bb62e0fe0f4 Mon Sep 17 00:00:00 2001 From: Hunter Chang <716376+ChangoMan@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:47:04 +0800 Subject: [PATCH] add loading state to eligible picker --- .../app/admin/_components/SubmissionCard.tsx | 4 ++-- .../app/admin/_components/SubmissionEligible.tsx | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/packages/nextjs/app/admin/_components/SubmissionCard.tsx b/packages/nextjs/app/admin/_components/SubmissionCard.tsx index 102d425..b6305ae 100644 --- a/packages/nextjs/app/admin/_components/SubmissionCard.tsx +++ b/packages/nextjs/app/admin/_components/SubmissionCard.tsx @@ -105,10 +105,10 @@ export const SubmissionCard = ({ submission }: { submission: Submission }) => { ))} {score > 0 && ( -
+
{isVotePending && }
{submission.eligible !== undefined && ( - +
+ + {isPending && } +
)} {submission.eligible === false && (