Plany: pasek siłowni jako czytelny banner z ikona i akcja Zmien (krok 2 edytora)
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
useExercises,
|
||||
type PlanBody,
|
||||
} from '../../api/queries';
|
||||
import { CalendarX, Check, ChevronRight, Unlink } from 'lucide-react';
|
||||
import { CalendarX, Check, ChevronRight, Dumbbell, Unlink } from 'lucide-react';
|
||||
import {
|
||||
BackButton,
|
||||
Button,
|
||||
@@ -469,19 +469,21 @@ export default function PlanEditor() {
|
||||
|
||||
<div ref={panelRef} className="scroll-mt-28">
|
||||
{/* Przypomnienie wybranej siłowni (decyzja zapada w kroku 1 — filtruje katalog) */}
|
||||
<p className="mb-3 text-[0.8125rem] text-dim">
|
||||
Siłownia: <span className="font-semibold text-ink">{gymName ?? 'bez siłowni'}</span>
|
||||
{' · '}
|
||||
{gymName ? 'katalog ćwiczeń z jej sprzętu' : 'pełny katalog ćwiczeń'}
|
||||
{' · '}
|
||||
<div className="mb-3 flex flex-wrap items-center gap-x-2.5 gap-y-1 rounded-xl border border-line bg-card px-4 py-2.5 text-[0.8125rem] text-dim">
|
||||
<Dumbbell className="h-4 w-4 shrink-0 text-accent-text" aria-hidden="true" />
|
||||
<span className="min-w-0">
|
||||
Siłownia: <span className="font-semibold text-ink">{gymName ?? 'bez siłowni'}</span>
|
||||
{' · '}
|
||||
{gymName ? 'katalog ćwiczeń z jej sprzętu' : 'pełny katalog ćwiczeń'}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
className="cursor-pointer text-accent-text underline"
|
||||
className="ml-auto cursor-pointer font-semibold text-accent-text underline underline-offset-2"
|
||||
onClick={() => setStep(1)}
|
||||
>
|
||||
zmień
|
||||
Zmień
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<WeekPanel
|
||||
index={activeWi}
|
||||
|
||||
Reference in New Issue
Block a user