Skip to content

Commit

Permalink
Move start exercise buttons higher in ActiveExercise
Browse files Browse the repository at this point in the history
The start exercise and skip exercise buttons have been moved higher in the ActiveExercise component. This change is intended to make these buttons more prominent and easily accessible to the user. The updated position provides better usability by reducing the distance that the user's eye has to travel.
  • Loading branch information
var-poro committed Jul 5, 2024
1 parent 1ee0430 commit 6784156
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/src/components/ActiveExercise/ActiveExercise.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ const ActiveExercise: FC<Props> = ({ exercise, nextExercise }) => {
/>
</span>
</div>
{!exerciseStarted && (
<div className={styles.buttonsContainer}>
<button onClick={handleStartExercise}>Démarrer</button>
<span onClick={nextExercise}>Passer l'exercice</span>
</div>
)}
<div
ref={exerciseRef}
className={`${styles.exercise} ${isCollapsed ? styles.collapsed : ''}`}
Expand Down Expand Up @@ -163,12 +169,6 @@ const ActiveExercise: FC<Props> = ({ exercise, nextExercise }) => {
</div>
</>
)}
{!exerciseStarted && (
<div className={styles.buttonsContainer}>
<button onClick={handleStartExercise}>Démarrer</button>
<span onClick={nextExercise}>Passer l'exercice</span>
</div>
)}
</div>
);
};
Expand Down

0 comments on commit 6784156

Please sign in to comment.