Skip to content

Commit

Permalink
Added leg curl, leg press, cable fly
Browse files Browse the repository at this point in the history
  • Loading branch information
yashjagtap23 committed Aug 18, 2024
1 parent 1ed2c88 commit ede8c83
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/BarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,30 @@ const BarChart = () => {
// Combine results for back muscles
const allBackExercises = [...results[0], ...results[1], ...results[2]]; // Lats, lower_back, middle_back

// Add manually "Lat-pulldown" exercise
// Add manually back exercises
const latPulldown = { name: 'Lat Pulldown', muscle: 'lats' };
allBackExercises.push(latPulldown);

// Add manually "preacher-curl" exercise
// Add manually bicep exercises
const preacherCurl = { name: 'Preacher Curl', muscle: 'biceps' };
results[5].push(preacherCurl);

// Add manually tricep exercises
const tricepPushdown = { name: 'Tricep Pushdown', muscle: 'triceps' };
results[6].push(tricepPushdown);

// Add manually chest exercises
const cableFly = { name: 'Cable Fly', muscle: 'chest' };
results[7].push(cableFly);

// Add manually hamstring exercises
const legCurl = { name: 'Leg Curl', muscle: 'hamstring' };
results[4].push(legCurl)

// Add manually quad exercises
const legPress = { name: 'Leg Press', muscle: 'quad' };
results[3].push(legPress)

// Set state with results
setExerciseData({
bicepExercises: results[5],
Expand Down
3 changes: 3 additions & 0 deletions src/components/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const Options = ({ exercises, onExercisesChange }) => {
"Hammer Curls",
"EZ-Bar Curl",
"Barbell Curl",
"Cable Fly",
"Leg Press",
"Leg Curl",
"Concentration curl",
"Landmine twist",
"Elbow plank",
Expand Down

0 comments on commit ede8c83

Please sign in to comment.