🚨 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
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
- Clone the repository
git clone https://github.com/anhtuanbtx1/dreamspos-react.git
- Install dependencies
npm install
- 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
Languages
JavaScript
85.9%
SCSS
12.8%
CSS
0.8%
TypeScript
0.5%