diff --git a/packages/nextjs/app/admin/_components/SubmissionCard.tsx b/packages/nextjs/app/admin/_components/SubmissionCard.tsx index b6305ae..0b3a529 100644 --- a/packages/nextjs/app/admin/_components/SubmissionCard.tsx +++ b/packages/nextjs/app/admin/_components/SubmissionCard.tsx @@ -82,7 +82,7 @@ export const SubmissionCard = ({ submission }: { submission: Submission }) => {
-
+
{ vote(i + 1)} + disabled={isVotePending} /> ))}
+ {isVotePending && } {score > 0 && ( -
- {isVotePending && } - -
+ )}
diff --git a/packages/nextjs/app/admin/_components/submission-rating.css b/packages/nextjs/app/admin/_components/submission-rating.css index 506a99b..0ff6ebe 100644 --- a/packages/nextjs/app/admin/_components/submission-rating.css +++ b/packages/nextjs/app/admin/_components/submission-rating.css @@ -5,6 +5,9 @@ .rating:hover .star { @apply bg-amber-500; } +.rating:hover .star:disabled { + @apply bg-gray-200; +} .rating:hover .star.peer:hover ~ .peer-hover\:bg-amber-400 { @apply bg-amber-500 bg-opacity-20;