From 36c3c5c05616bcc9a079ce6bacb7db678283bfb3 Mon Sep 17 00:00:00 2001 From: tisachi Date: Sun, 13 Sep 2026 17:49:56 +0200 Subject: [PATCH] Profil: /profile/gyms - dodany przycisk Wstecz w naglowku (md+; na telefonie jest w topbarze) --- app/src/pages/profile/ProfileGyms.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/pages/profile/ProfileGyms.tsx b/app/src/pages/profile/ProfileGyms.tsx index 7fe3727..f40c3df 100644 --- a/app/src/pages/profile/ProfileGyms.tsx +++ b/app/src/pages/profile/ProfileGyms.tsx @@ -1,15 +1,17 @@ import { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; import { Plus } from 'lucide-react'; import { useMe } from '../../api/queries'; import GymsSection from '../../components/gyms/GymsSection'; +import { BackButton, PageHeader } from '../../components/ui'; import { useTopbar } from '../../topbar'; export default function ProfileGyms() { + const navigate = useNavigate(); const { data: me } = useMe(); const isAdmin = me?.user.isAdmin ?? false; const [createOpen, setCreateOpen] = useState(false); - // „Wstecz” jest w topbarze („<” na mobile, przycisk na md+) — bez osobnego w treści useTopbar({ title: 'Profil — siłownie', back: '/profile', @@ -18,5 +20,10 @@ export default function ProfileGyms() { : undefined, }); - return ; + return ( + <> + navigate('/profile')} />} /> + + + ); }