Files
WooNooW/admin-spa
dwindown 80f8d9439f fix: Resolve eslint errors in Orders components
Fixed all eslint errors and warnings in modified files.

Issues Fixed:
1. OrderCard.tsx: Fixed statusStyle type mismatch
   - Changed from Record<string, string> to Record<string, { bg: string; text: string }>
   - Updated usage to match the correct type

2. Edit.tsx: Fixed React hooks rule violation
   - Moved useEffect before early returns
   - React hooks must be called in the same order every render

3. Orders/index.tsx: Fixed React Compiler memoization warning
   - Changed useMemo dependency from data?.rows to data
   - Extracted rows inside useMemo to satisfy compiler

Result:
 Zero errors in our modified files
 Zero warnings in our modified files
 Code follows React best practices
 Ready for production!
2025-11-08 19:07:59 +07:00
..