- Aggiornamento Viaggi
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user