- Aggiornamento Viaggi

This commit is contained in:
Surya Paolo
2025-12-30 11:36:37 +01:00
parent cd123ac363
commit 169f4d6baf
40 changed files with 8129 additions and 1395 deletions

View File

@@ -5,7 +5,7 @@ import { useDriverProfile } from '../composables/useDriverProfile';
import { useChat } from '../composables/useChat';
import RideCard from '../components/ride/RideCard.vue';
import FeedbackList from '../components/feedback/FeedbackList.vue';
import type { DriverPublicProfile } from '../types';
import { VEHICLE_TYPES } from '../types/viaggi.types';
import { useUserStore } from 'app/src/store';
export default defineComponent({
@@ -108,14 +108,8 @@ export default defineComponent({
};
const getVehicleIcon = (type?: string): string => {
const icons: Record<string, string> = {
auto: '🚗',
moto: '🏍️',
furgone: '🚐',
minibus: '🚌',
altro: '🚙'
};
return icons[type || 'auto'] || '🚗';
const vehicleType = VEHICLE_TYPES.find((vt) => vt.value === type);
return vehicleType ? vehicleType.icon : ' ';
};
const formatBadgeName = (name: string): string => {