🔧 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:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user