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:
parent
a40eb7b5d1
commit
7f04ae5eca
|
|
@ -107,7 +107,7 @@ export default function EmployeeVerificationPage() {
|
|||
};
|
||||
|
||||
const getStatusBadge = (status: string) => {
|
||||
const badges = {
|
||||
const badges: Record<string, React.ReactElement> = {
|
||||
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">
|
||||
<Clock className="w-3 h-3 mr-1" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user