Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes redundant handleStopLesson method from App.js. #193

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

evgenyfadeev
Copy link
Contributor

@evgenyfadeev evgenyfadeev commented Nov 9, 2024

A small change towards resolving #168

  • src/App.js:
    • removes the handleStopLesson method
    • removes it from the context
  • src/pages/lessons/Lesson.tsx:
    • removes handleStopLesson from props
    • passes stopLesson to LessonSubheader and MainLessonView instead of handleStopLesson
  • src/pages/lessons/{Lesson,LessonSubheader,MainLessonView + stories}.tsx:
    • replaces prop handleStopLesson with stopLesson
  • src/pages/lessons/components/LessonSubheader.tsx:
    • button onClick handler calls stopLesson after event.preventDefault()

* src/App.js:
 - removes the handleStopLesson method
 - removes it from the context
* src/pages/lessons/Lesson.tsx:
 - removes handleStopLesson from props
 - passes stopLesson to LessonSubheader instead of handleStopLesson
* src/pages/lessons/{Lesson,LessonSubheader,MainLessonView + stories}.tsx:
 - replaces prop handleStopLesson with stopLesson
* src/pages/lessons/components/LessonSubheader.tsx:
 - button onClick handler calls stopLesson after event.preventDefault()
@didoesdigital
Copy link
Owner

Thanks @evgenyfadeev ! This looks great. I should have time to merge and publish this tomorrow (or maybe sooner).

@didoesdigital didoesdigital merged commit 7d1c613 into didoesdigital:master Nov 10, 2024
@didoesdigital
Copy link
Owner

Thanks @evgenyfadeev ! I've merged and deployed the improvements. I really appreciate you tracking down that bit of code and cleaning it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants