- Delete unused page-advanced.tsx and page-backup.tsx (dashboard duplicates) - Add useApi hook for centralized API calls with auth token - Add LoadingState, ErrorState, StatusBadge reusable components - Create shared ProfilePage component for admin/employee profiles - Refactor admin and employee profile pages to use shared component This refactoring addresses SonarQube quality gate failure for duplicated lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
561 B
TypeScript
22 lines
561 B
TypeScript
"use client";
|
|
|
|
import ProfilePage from "@/components/ProfilePage";
|
|
import { ROUTES } from "@/utils/constants";
|
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export default function EmployeProfilePage() {
|
|
return (
|
|
<ProfilePage
|
|
role="employee"
|
|
roleLabel="Employé"
|
|
badgeVariant="warning"
|
|
primaryColor="green"
|
|
quickActions={[
|
|
{ label: "Dashboard", route: ROUTES.EMPLOYEE_DASHBOARD, variant: "primary" },
|
|
{ label: "Validation des gains", route: "/employe/verification", variant: "secondary" },
|
|
]}
|
|
/>
|
|
);
|
|
}
|