Remove problematic utility to fix production task form errors

Create a new task form component that completely removes the 'cn' utility to resolve `ReferenceError: cn is not defined` in production, and update the main task form export to use this new version.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/fw7PcEX
This commit is contained in:
michaelschal committed 2025-08-19 09:00:59 +00:00
1 parent ecd38c0308
commit ba045a11a5
4 files changed
+453 -7

No files matched your search

@@ -18,10 +18,7 @@ import { z } from "zod";
import { CalendarIcon } from "lucide-react";
import { format } from "date-fns";
import { fr } from "date-fns/locale";
// Fonction utilitaire cn intégrée pour éviter les erreurs de dépendance en production
function cn(...classes: (string | undefined | null | false)[]): string {
return classes.filter(Boolean).join(' ');
}
// Supprimer complètement l'utilisation de cn pour éviter toute erreur de production
// Schéma robuste avec dates de début et d'échéance pour production
const taskFormSchema = z.object({