diff --git a/src/app/(admin)/admin/projects/page.tsx b/src/app/(admin)/admin/projects/page.tsx index da03b7c..a26dd10 100644 --- a/src/app/(admin)/admin/projects/page.tsx +++ b/src/app/(admin)/admin/projects/page.tsx @@ -907,17 +907,8 @@ export default function ProjectsPage() { const code = normalizeCountryToCode(project.country) const flag = code ? getCountryFlag(code) : null const name = code ? getCountryName(code) : project.country - return flag ? ( - - - - · {flag} - -

{name}

-
-
- ) : ( - · {project.country} + return ( + · {flag && {flag}} {name} ) })()}

@@ -1176,17 +1167,8 @@ export default function ProjectsPage() { const code = normalizeCountryToCode(project.country) const flag = code ? getCountryFlag(code) : null const name = code ? getCountryName(code) : project.country - return flag ? ( - - - - · {flag} - -

{name}

-
-
- ) : ( - · {project.country} + return ( + · {flag && {flag}} {name} ) })()} diff --git a/src/app/(admin)/admin/projects/pool/page.tsx b/src/app/(admin)/admin/projects/pool/page.tsx index 5f30726..3364514 100644 --- a/src/app/(admin)/admin/projects/pool/page.tsx +++ b/src/app/(admin)/admin/projects/pool/page.tsx @@ -28,6 +28,7 @@ import { Badge } from '@/components/ui/badge' import { Input } from '@/components/ui/input' import { Card, CardContent } from '@/components/ui/card' import { Skeleton } from '@/components/ui/skeleton' +import { getCountryName, getCountryFlag, normalizeCountryToCode } from '@/lib/countries' import { toast } from 'sonner' import { ArrowLeft, ChevronLeft, ChevronRight, Loader2, X, Layers, Info } from 'lucide-react' @@ -387,7 +388,12 @@ export default function ProjectPoolPage() { )} - {project.country || '-'} + {project.country ? (() => { + const code = normalizeCountryToCode(project.country) + const flag = code ? getCountryFlag(code) : null + const name = code ? getCountryName(code) : project.country + return <>{flag && {flag} }{name} + })() : '-'} {project.submittedAt