This PR aims to convert the Lesson.jsx component from a class component to a function component and otherwise work as close to the same as before as possible. This will let us conveniently use hooks in it in the future.
One additional small tweak is that if you open Typey Type on the custom lesson page or reload Typey Type on that page, instead of showing "Flashcards" as a button in the top–right and linking to the homepage, it now hides that button.
Update: this PR now also tidies up the Progress.jsx component a bit in anticipation of converting it to a function component
This PR aims to convert the
Lesson.jsx
component from a class component to a function component and otherwise work as close to the same as before as possible. This will let us conveniently use hooks in it in the future.One additional small tweak is that if you open Typey Type on the custom lesson page or reload Typey Type on that page, instead of showing "Flashcards" as a button in the top–right and linking to the homepage, it now hides that button.
Update: this PR now also tidies up the
Progress.jsx
component a bit in anticipation of converting it to a function component