Add a drawer with filters for mobile use on exercise overview page #893
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On the exercise overview page, the filters are now placed in a drawer.
See: #466
I noticed that there is a padding for the entire page on this screen when shown in mobile format. I tried to remove that but failed. Its already there before these changes.
I refactored the code a bit and introduced a context which means that you don't have to pass the state to other components anymore. I also use a memo for the calculation of
filteredExercises
to prevent it from recalculating on every re-render if the data hasn't changed. Please let me know what you think.I couldn't find how to add new translations, so I still need to translate the word
Filters
. How can I add such translation?Screenshots: