🔧 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:
Dennis Konkol
2025-09-05 22:48:33 +00:00
parent cc5396b5cb
commit b1d6bf08ba
3 changed files with 8 additions and 11 deletions

View File

@@ -99,10 +99,7 @@ const ToastItem = ({ toast, onRemove }: ToastProps) => {
</div>
<button
onClick={() => {
setIsVisible(false);
setTimeout(() => onRemove(toast.id), 300);
}}
onClick={() => onRemove(toast.id)}
className="flex-shrink-0 p-1 rounded-lg hover:bg-gray-100 transition-colors"
>
<X className="w-4 h-4 text-gray-500" />