martin-markovic / learn-connect

Multi-feature platform designed to enhance the online learning experience.
MIT License
0 stars 0 forks source link

Enhance Quiz Component State Management and UI, Remove Firebase Dependencies #27

Closed martin-markovic closed 1 month ago

martin-markovic commented 1 month ago

Summary

This pull request introduces several enhancements to the Quizzes.jsx component, including state management and UI updates, and removes Firebase dependencies from the project.

Changes

  1. State Management and UI Enhancements

    • Integrated necessary hooks to conditionally render lists based on component-level state in Quizzes.jsx.
    • Implemented buttons for handling state changes in Quizzes.jsx.
    • Added new layout classes quiz__list and quiz__list-controller in index.css.
    • Integrated layout classes into respective HTML div elements in Quizzes.jsx.
    • Integrated toast notifications to handle errors in QuizForm.jsx.
    • Changed the HTML label element to a span element in ClassQuizList.jsx for better semantic structure.
  2. Removal of Firebase Dependencies

    • Removed firebase and firebase-admin from the package.json dependencies array.
    • Deleted package-lock.json and node_modules folders in the root of the project.
    • Reinitialized node_modules by running npm install.
    • Removed redundant Firebase imports and functionality from authService.js, server.js, and userController.js.
    • Deleted the redundant firebaseConfig.js module.

Testing

Additional Information