didoesdigital / typey-type

Typey Type for Stenographers is a free typing app designed specifically to help steno students practise and rapidly master stenography.
https://didoesdigital.com/typey-type
GNU Affero General Public License v3.0
90 stars 15 forks source link

Convert Lesson component to function component #148

Closed didoesdigital closed 10 months ago

didoesdigital commented 10 months ago

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