🔧 Fix TypeScript Build Errors
✅ Fixed AdminDashboard sorting types: - Changed aValue/bValue from unknown to string|number|Date ✅ Fixed Toast component: - Removed setIsVisible reference (function doesn't exist) ✅ Fixed Prisma service types: - Added type casting for createProject data - Fixed InteractionType enum (VIEW → BOOKMARK) - Added type casting for analytics/performance data 🎯 Build Status: ✅ SUCCESS - All TypeScript errors resolved - Build completes successfully - 22 routes generated - Ready for production deployment
This commit is contained in:
@@ -91,7 +91,7 @@ export default function AdminDashboard({ onProjectSelect, onNewProject }: AdminD
|
||||
return matchesSearch && matchesCategory;
|
||||
})
|
||||
.sort((a, b) => {
|
||||
let aValue: unknown, bValue: unknown;
|
||||
let aValue: string | number | Date, bValue: string | number | Date;
|
||||
|
||||
switch (sortBy) {
|
||||
case 'date':
|
||||
|
||||
Reference in New Issue
Block a user