Thêm tính năng pending khi một thành viên thêm một người khác vào

This commit is contained in:
2026-06-14 20:22:37 +07:00
parent 914a9cf243
commit 8ff09eeeaf
24 changed files with 945 additions and 129 deletions
+5 -1
View File
@@ -23,12 +23,16 @@ interface TourState {
addMember: (tourId: string, member: {
userId: string;
role?: string;
}) => Promise<void>;
}) => Promise<any>;
removeMember: (tourId: string, userId: string) => Promise<void>;
setActiveLegId: (id: string | null) => void;
setMapCenter: (pos: [number, number]) => void;
fetchTour: (id: string) => Promise<void>;
fetchPublicTours: () => Promise<void>;
createJoinRequest: (tourId: string, userId?: string) => Promise<any>;
fetchJoinRequests: (tourId: string) => Promise<any[]>;
acceptJoinRequest: (tourId: string, requestId: string) => Promise<any>;
rejectJoinRequest: (tourId: string, requestId: string) => Promise<any>;
}
export declare const useTourStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TourState>>;
export {};