diff --git a/src/app/(jury)/jury/awards/[id]/page.tsx b/src/app/(jury)/jury/awards/[id]/page.tsx
index c5f77a1..ffb2c22 100644
--- a/src/app/(jury)/jury/awards/[id]/page.tsx
+++ b/src/app/(jury)/jury/awards/[id]/page.tsx
@@ -21,10 +21,7 @@ import {
Loader2,
GripVertical,
ChevronDown,
- FileText,
- Download,
Users,
- MapPin,
Tag,
} from 'lucide-react'
import { cn } from '@/lib/utils'
@@ -34,7 +31,8 @@ import {
CollapsibleContent,
CollapsibleTrigger,
} from '@/components/ui/collapsible'
-import { Separator } from '@/components/ui/separator'
+import { FileViewer } from '@/components/shared/file-viewer'
+import { ProjectLogo } from '@/components/shared/project-logo'
export default function JuryAwardVotingPage({
params,
@@ -68,19 +66,6 @@ export default function JuryAwardVotingPage({
})
}
- const handleDownload = async (objectKey: string, fileName: string) => {
- try {
- const result = await utils.file.getDownloadUrl.fetch({
- bucket: 'mopc',
- objectKey,
- fileName,
- forDownload: true,
- })
- if (result.url) window.open(result.url, '_blank')
- } catch {
- toast.error('Failed to download file')
- }
- }
// Initialize from existing votes
if (data && !selectedProjectId && !rankedIds.length && data.myVotes.length > 0) {
@@ -212,7 +197,7 @@ export default function JuryAwardVotingPage({
isExpanded={expandedProjects.has(project.id)}
onSelect={() => setSelectedProjectId(project.id)}
onToggleExpand={() => toggleExpanded(project.id)}
- onDownload={handleDownload}
+
/>
))}
@@ -254,7 +239,7 @@ export default function JuryAwardVotingPage({
{index + 1}
-
{project.title}
@@ -277,7 +262,7 @@ export default function JuryAwardVotingPage({
{project.description}
-{project.description}
)} {project.tags.length > 0 && ( @@ -402,32 +389,8 @@ function ProjectDetails({ )} {project.files.length > 0 && ( -