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!