tuan.cna 95edd9d278 🔧 Fix React Hooks Rules Violation
🚨 Fixed Rules of Hooks Error:
- Moved useSelector hook call outside of getIsDarkMode function
- useSelector must be called directly in component, not in nested function
- Proper React hooks usage following React guidelines

🔄 Refactored Theme Detection:
- Direct useSelector call for Redux theme state
- Separate variables for localStorage and document theme detection
- Combined theme detection with logical OR operator
- Maintained same functionality with proper hook usage

 Code Quality Improvements:
- No more React hooks rules violations
- Cleaner code structure
- Better separation of concerns
- Maintained all theme detection functionality

🎯 Technical Details:
- useSelector called at component level
- Theme detection logic simplified
- Debug logging preserved
- All theme sources still checked properly
2025-05-30 15:39:35 +07:00
2025-05-30 15:39:35 +07:00
2025-05-25 17:15:22 +07:00
2025-05-25 17:15:22 +07:00

Dreams POS React Template

A modern Point of Sale (POS) system built with React.js.

Features

  • Modern and responsive UI
  • Complete POS functionality
  • Inventory management
  • Sales and purchase tracking
  • User management
  • Reports and analytics
  • Mobile-friendly design

Installation

  1. Clone the repository
git clone https://github.com/anhtuanbtx1/dreamspos-react.git
  1. Install dependencies
npm install
  1. Start the development server
npm start

Technologies Used

  • React.js
  • React Router
  • Redux
  • Bootstrap
  • SCSS
  • Axios

License

This project is licensed under the MIT License.

Description
No description provided
Readme 17 MiB
Languages
JavaScript 85.9%
SCSS 12.8%
CSS 0.8%
TypeScript 0.5%