Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/app/(tabs)/(session)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function ListUpcomingWorkouts({
renderItemActions={(session) => {
const sessionPlanIndex = plan.sessions.findIndex((x) => x.equals(session.blueprint));
const handleEditPress = () => {
push(`/settings/manage-workouts/${planId}/manage-session/${sessionPlanIndex}`, { withAnchor: true });
push(`/plan-workout-editor/${planId}/${sessionPlanIndex}`);
};
return (
<CardActions style={{ marginTop: spacing[2] }}>
Expand Down
2 changes: 1 addition & 1 deletion app/src/app/(tabs)/(session)/screenshot-collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function PrepareExerciseEditorPage() {
return (
<Redirect
href={{
pathname: '/settings/manage-workouts/[programId]/manage-session/[sessionIndex]/exercise',
pathname: '/plan-workout-editor/[programId]/[sessionIndex]/exercise',
params: { programId: activePlanId, sessionIndex: 0, exerciseIndex: 0 },
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function ManageWorkouts() {
const { t } = useTranslate();
const dispatch = useDispatch();
const selectSession = (index: number) => {
push(`/settings/manage-workouts/${programId}/manage-session/${index}`);
push(`/plan-workout-editor/${programId}/${index}`);
};

const addWorkout = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function SessionEditor({ session, location }: { session: SessionBlueprint; locat
const { push } = useRouter();
const openExerciseEditor = (exerciseIndex: number) => {
push({
pathname: '/settings/manage-workouts/[programId]/manage-session/[sessionIndex]/exercise',
pathname: '/plan-workout-editor/[programId]/[sessionIndex]/exercise',
params: { ...location, exerciseIndex },
});
};
Expand Down
Loading