martin-markovic / learn-connect

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

Enhance Redux State Management and Firebase Validation #22

Closed martin-markovic closed 1 month ago

martin-markovic commented 1 month ago

Summary

This pull request improves the application's authentication flow by removing redundant client-side logic, adding Firebase validation, and enhancing Redux state management. Additionally, it re-enables React.StrictMode and optimizes the development environment with Redux devTools.

Changes

  1. Client-Side Authentication Cleanup

    • Removed the redundant client-side authentication function from userController.js.
  2. Firebase Integration

    • Added Firebase validation to loginUser in authService.js.
  3. Redux State Management

    • Implemented and exported a new reducer setUser in authService.js.
    • Integrated necessary hooks and setUser to handle Redux state management based on the local storage user in App.js.
  4. Component Refactoring

    • Removed rerouting logic and redundant hooks from Dashboard.jsx.
    • Removed rerouting and redundant hooks from Login.jsx.
    • Removed rerouting and redundant hooks from Register.jsx.
  5. Environment Optimization

    • Re-enabled React.StrictMode in index.js.
    • Implemented devTools setting in the development environment in store.js.

Additional Information