the-tip-top-frontend/components
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
..
admin fix: use API_BASE_URL constant instead of direct env access 2025-11-18 15:07:49 +01:00
forms dev 2025-11-17 23:38:02 +01:00
ui dev 2025-11-17 23:38:02 +01:00
AuthProviders.tsx dev 2025-11-17 23:38:02 +01:00
Button.tsx dev 2025-11-17 23:38:02 +01:00
Footer.tsx dev 2025-11-17 23:38:02 +01:00
Header.tsx fix: use uppercase role values in Header component switch statement 2025-11-18 01:28:08 +01:00
Logo.tsx dev 2025-11-17 23:38:02 +01:00
Navbar.tsx fix: replace 'as const' with explicit type annotation for NAV_ITEMS 2025-11-18 01:43:34 +01:00