Massive/WorkoutsPage.tsx
Brandon Presley dc5434991a Pause adding multi-edit to workouts
Got up to the point where i'm find/replacing the
old names with new names, and I got confused
about the purpose of this feature.
2023-08-14 13:14:34 +12:00

28 lines
693 B
TypeScript

import { createStackNavigator } from "@react-navigation/stack";
import EditWorkout from "./EditWorkout";
import GymSet from "./gym-set";
import WorkoutList from "./WorkoutList";
export type WorkoutsPageParams = {
WorkoutList: {};
EditWorkout: {
gymSet: GymSet;
};
EditWorkouts: {
names: string[];
};
};
const Stack = createStackNavigator<WorkoutsPageParams>();
export default function WorkoutsPage() {
return (
<Stack.Navigator
screenOptions={{ headerShown: false, animationEnabled: false }}
>
<Stack.Screen name="WorkoutList" component={WorkoutList} />
<Stack.Screen name="EditWorkout" component={EditWorkout} />
</Stack.Navigator>
);
}