-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Remove unused code related to H5P content retrieval
The code changes remove the unused code related to fetching H5P quiz content in the QuestionForm component. The useGetH5PQuizContentByIdQuery hook and its related dependencies have been removed. The changes also refactor the QuestionList component by introducing a new handleH5PBulkQuestion function to handle adding multiple H5P questions at once. This function is called when selecting H5P content from the H5PContentListModal component. Additionally, the H5PContentListModal component has been updated to display a checkbox for each H5P content item. The selected H5P content items are stored in the selectedContents state and can be added to the lesson description using the onAddContent callback. These changes improve the codebase by removing unused code and enhancing the functionality related to H5P content selection and addition.
- Loading branch information
Showing
4 changed files
with
116 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters