Plans: wznawianie planu tylko dla wlasciciela (usuniete akcje trenera)

This commit is contained in:
tisachi
2026-10-22 23:53:49 +02:00
parent 50df81dbf0
commit 83ee38dc3a
13 changed files with 54 additions and 175 deletions

View File

@@ -846,10 +846,6 @@ export function completeTraineePlan(userId: string, planId: string) {
return api(`/trainer/trainees/${userId}/plans/${planId}/complete`, { method: 'POST' });
}
export function reopenTraineePlan(userId: string, planId: string) {
return api(`/trainer/trainees/${userId}/plans/${planId}/reopen`, { method: 'POST' });
}
// ---------- aktualności (feed) ----------
export function useFeed(limit = 20) {
return useInfiniteQuery({