From 6c4a3d3999cd2bcaf15489a2dbd488d0792ea375 Mon Sep 17 00:00:00 2001 From: Hunter Chang <716376+ChangoMan@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:32:43 +0800 Subject: [PATCH] add message for blank tab content --- .../app/admin/_components/SubmissionEligible.tsx | 2 -- .../nextjs/app/admin/_components/SubmissionTabs.tsx | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/app/admin/_components/SubmissionEligible.tsx b/packages/nextjs/app/admin/_components/SubmissionEligible.tsx index 081b333..106f5a9 100644 --- a/packages/nextjs/app/admin/_components/SubmissionEligible.tsx +++ b/packages/nextjs/app/admin/_components/SubmissionEligible.tsx @@ -57,8 +57,6 @@ export const SubmissionEligible = ({ submission }: { submission: Submission }) = buttonLabel = "Eligible"; } - console.log("submission", submission.eligible); - return (
; }) )} + {notVoted.length === 0 && ( +
+ There are no submissions to vote on. +
+ )} @@ -67,6 +72,11 @@ export const SubmissionTabs = ({ submissions }: { submissions: Submission[] }) = />
+ {voted.length === 0 && ( +
+ You have not voted on any submissions yet. +
+ )} {voted.map(submission => { return ; })}