fix: add type annotation to badges object in verification page

Add Record<string, React.ReactElement> type to badges object to allow
dynamic string indexing in app/employe/verification/page.tsx.

This matches the fix already applied to page-new.tsx and resolves the
TypeScript compilation error.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
soufiane 2025-11-18 00:47:45 +01:00
parent a40eb7b5d1
commit 7f04ae5eca

View File

@ -107,7 +107,7 @@ export default function EmployeeVerificationPage() {
}; };
const getStatusBadge = (status: string) => { const getStatusBadge = (status: string) => {
const badges = { const badges: Record<string, React.ReactElement> = {
PENDING: ( PENDING: (
<span className="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800"> <span className="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
<Clock className="w-3 h-3 mr-1" /> <Clock className="w-3 h-3 mr-1" />