the-tip-top-frontend/app/admin
soufiane 34474cc275 fix: use API_BASE_URL constant instead of direct env access
Replace all instances of process.env.NEXT_PUBLIC_API_URL with
API_BASE_URL constant for consistency and to ensure the API URL
is properly defined at runtime.

Files updated:
- app/admin/marketing-data/page.tsx
- app/admin/tirages/page.tsx
- app/employe/dashboard/page.tsx
- app/employe/gains-client/page.tsx
- app/employe/historique/page.tsx
- components/admin/TicketManagement.tsx

This fixes the "undefined" API URL issue that was preventing
API calls from working correctly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 15:07:49 +01:00
..
dashboard fix: correct TypeScript error in page.tsx PieChart label 2025-11-18 00:08:02 +01:00
lots dev 2025-11-17 23:38:02 +01:00
marketing-data fix: use API_BASE_URL constant instead of direct env access 2025-11-18 15:07:49 +01:00
tickets dev 2025-11-17 23:38:02 +01:00
tirages fix: use API_BASE_URL constant instead of direct env access 2025-11-18 15:07:49 +01:00
utilisateurs dev 2025-11-17 23:38:02 +01:00
layout.tsx fix: remove second invalid role comparison in admin layout 2025-11-18 00:15:28 +01:00
page.tsx fix: remove invalid role comparisons in admin page 2025-11-18 00:25:05 +01:00