Refactor search placeholder text

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 14:43:01 +00:00
parent 0b9436e329
commit efa026d6f5

View File

@@ -184,6 +184,19 @@ export function AutocompleteSearch({
}
};
const getTypeLabel = (type: string) => {
switch (type) {
case 'park':
return 'Park';
case 'ride':
return 'Ride';
case 'company':
return 'Manufacturer';
default:
return type.charAt(0).toUpperCase() + type.slice(1);
}
};
const isHero = variant === 'hero';
return (
@@ -265,7 +278,7 @@ export function AutocompleteSearch({
<div className="flex items-center gap-2">
<span className="font-medium truncate">{item.title}</span>
<Badge variant="outline" className={`text-xs ${getTypeColor(item.type)}`}>
{item.type}
{getTypeLabel(item.type)}
</Badge>
</div>
<div className="text-sm text-muted-foreground truncate">