mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 07:31:12 -05:00
Refactor: Hide zero counts in search
This commit is contained in:
@@ -100,11 +100,15 @@ export function ParkCard({ park }: ParkCardProps) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{park.average_rating > 0 && <div className="flex items-center gap-1">
|
||||
{park.average_rating > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<Star className="w-3 h-3 fill-yellow-400 text-yellow-400" />
|
||||
<span className="text-sm font-medium">{park.average_rating.toFixed(1)}</span>
|
||||
<span className="text-xs text-muted-foreground">({park.review_count})</span>
|
||||
</div>}
|
||||
{park.review_count > 0 && (
|
||||
<span className="text-xs text-muted-foreground">({park.review_count})</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Action Button */}
|
||||
|
||||
Reference in New Issue
Block a user