ancora parte 3
This commit is contained in:
@@ -7,6 +7,7 @@ import { useChat } from '../composables/useChat';
|
||||
import RideCard from '../components/ride/RideCard.vue';
|
||||
import RideFilters from '../components/ride/RideFilters.vue';
|
||||
import type { Ride, RideSearchFilters, RideType } from '../types';
|
||||
import { useUserStore } from 'app/src/store';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'RidesListPage',
|
||||
@@ -36,11 +37,10 @@ export default defineComponent({
|
||||
const { getOrCreateDirectChat } = useChat();
|
||||
|
||||
// State
|
||||
const userStore = useUserStore()
|
||||
const activeTab = ref<'all' | 'offers' | 'requests'>('all');
|
||||
const currentUserId = ref(''); // Da ottenere dal tuo auth store
|
||||
const currentUserId = ref<string>(userStore.my._id);
|
||||
|
||||
// TODO: Ottieni currentUserId dal tuo sistema di autenticazione
|
||||
// Esempio: currentUserId.value = authStore.user?._id || '';
|
||||
|
||||
// Computed
|
||||
const filteredRides = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user