Some checks failed
Deploy Development / deploy (push) Failing after 24s
Test Suite / pytest-backend (push) Successful in 34s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Failing after 7s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m22s
- Replaced `PageReturnLink` with `PageReturnButton` for consistent back navigation across various pages. - Updated multiple components, including `ExercisePeekModal`, `PageFormEditorChrome`, and `ExerciseDetailPage`, to utilize the new return context features. - Enhanced CSS styles for the new return button to improve visual consistency. - Improved navigation logic in `TrainingFrameworkProgramEditPage` and `TrainingModuleEditPage` to ensure seamless user experience when navigating back to previous locations.
13 lines
422 B
JavaScript
13 lines
422 B
JavaScript
import React from 'react'
|
|
import { Link } from 'react-router-dom'
|
|
import { linkStateWithAppReturn } from '../utils/navReturnContext'
|
|
|
|
/** Router-Link mit appReturn im State (Rücksprung vom Zielscreen). */
|
|
export default function NavStateLink({ to, returnContext, state, children, ...rest }) {
|
|
return (
|
|
<Link to={to} state={linkStateWithAppReturn(returnContext, state)} {...rest}>
|
|
{children}
|
|
</Link>
|
|
)
|
|
}
|