diff --git a/src/app/(award-master)/award-master/page.tsx b/src/app/(award-master)/award-master/page.tsx new file mode 100644 index 0000000..809f7cd --- /dev/null +++ b/src/app/(award-master)/award-master/page.tsx @@ -0,0 +1,90 @@ +'use client' + +import Link from 'next/link' +import { trpc } from '@/lib/trpc/client' +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from '@/components/ui/card' +import { Badge } from '@/components/ui/badge' +import { Skeleton } from '@/components/ui/skeleton' +import { Trophy } from 'lucide-react' + +export default function AwardMasterDashboard() { + const { data: awards, isLoading } = trpc.specialAward.getMyAwards.useQuery() + + if (isLoading) { + return ( +
+ +
+ {[...Array(2)].map((_, i) => ( + + ))} +
+
+ ) + } + + return ( +
+
+

+ Award Master Dashboard +

+

+ Review eligible projects and select award winners +

+
+ + {awards && awards.length > 0 ? ( +
+ {awards.map((award) => ( + + + +
+ + + {award.name} + + + {award.status.replace('_', ' ')} + +
+ {award.description && ( + + {award.description} + + )} +
+ +

+ {award._count.eligibilities} eligible projects +

+
+
+ + ))} +
+ ) : ( + + + +

No awards assigned

+

+ You will see your awards here when they are assigned to you +

+
+
+ )} +
+ ) +}