diff --git a/src/components/park-owners/ParkOwnerCard.tsx b/src/components/park-owners/ParkOwnerCard.tsx index cd4db822..caf85ab6 100644 --- a/src/components/park-owners/ParkOwnerCard.tsx +++ b/src/components/park-owners/ParkOwnerCard.tsx @@ -1,8 +1,7 @@ import React from 'react'; import { useNavigate } from 'react-router-dom'; -import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; +import { Card, CardContent } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; -import { Button } from '@/components/ui/button'; import { Building2, Star, MapPin } from 'lucide-react'; import { Company } from '@/types/database'; @@ -18,82 +17,94 @@ const ParkOwnerCard = ({ company }: ParkOwnerCardProps) => { }; const getCompanyIcon = () => { - return ; + return ; }; return ( - - -
-
-
- {company.logo_url ? ( - {`${company.name} - ) : ( - getCompanyIcon() - )} -
-
- - {company.name} - -
- - Property Owner - - {company.founded_year && ( - - Est. {company.founded_year} - - )} -
-
-
+ + {/* Logo/Image Section */} +
+
+ + {/* Property Owner Badge */} +
+ + Property Owner +
- - - + + {/* Logo Display */} +
+ {company.logo_url ? ( +
+ {`${company.name} +
+ ) : ( +
+ {getCompanyIcon()} +
+ )} +
+
+ + + {/* Company Name */} +

+ {company.name} +

+ + {/* Description */} {company.description && ( -

+

{company.description}

)} - -
- {company.headquarters_location && ( -
- - {company.headquarters_location} + + {/* Company Info */} +
+ {company.founded_year && ( +
+ Founded: + {company.founded_year}
)} -
- - - {company.average_rating > 0 - ? `${company.average_rating.toFixed(1)} rating` - : 'No ratings yet' - } - {company.review_count > 0 && ( - - ({company.review_count} review{company.review_count !== 1 ? 's' : ''}) - - )} - -
+ {company.headquarters_location && ( +
+ + + {company.headquarters_location} + +
+ )} +
+ + {/* Rating */} + {company.average_rating > 0 && ( +
+ + {company.average_rating.toFixed(1)} + ({company.review_count} reviews) +
+ )} + + {/* Park Count Stats */} +
+ {(company as any).park_count > 0 && ( +
+ + {(company as any).park_count} + parks owned +
+ )}
- - );