App: przycisk Wstecz w tresni strony dnia prowadzi do planu dnia - BackButton w PageHeader DayExecution = /plans/{planId} (md+; na telefonie zostaje < w topbarze), fallback /calendar gdy dzien bez planu (mock GET /days/:id z planId; unit)
This commit is contained in:
@@ -48,6 +48,7 @@ import { useTopbar } from '../topbar';
|
||||
import StartTrainingPresenceModal from '../components/presence/StartTrainingPresenceModal';
|
||||
import {
|
||||
Badge,
|
||||
BackButton,
|
||||
Button,
|
||||
Card,
|
||||
ConfirmDialog,
|
||||
@@ -1156,7 +1157,13 @@ export default function DayExecution() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageHeader title={title} />
|
||||
{/* md+: powrót do planu, do którego należy dzień (na telefonie „<” w topbarze) */}
|
||||
<PageHeader
|
||||
title={title}
|
||||
actions={
|
||||
dayInfo && <BackButton to={dayInfo.planId ? `/plans/${dayInfo.planId}` : '/calendar'} />
|
||||
}
|
||||
/>
|
||||
|
||||
{error && <ErrorText>{error}</ErrorText>}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user