mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Fix error when using utility function for styling elements
Integrate the `cn` utility function directly into the `SimpleTaskForm.tsx` component to resolve a `ReferenceError` in production environments, ensuring proper styling functionality. 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/bNRhnSG
This commit is contained in:
1 parent
3a2413cc4a
commit
ecd38c0308
3 files changed
+37
-1
No files matched your search
@@ -18,7 +18,10 @@ import { z } from "zod";
|
||||
import { CalendarIcon } from "lucide-react";
|
||||
import { format } from "date-fns";
|
||||
import { fr } from "date-fns/locale";
|
||||
import { cn } from "@/lib/utils";
|
||||
// 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(' ');
|
||||
}
|
||||
|
||||
// Schéma robuste avec dates de début et d'échéance pour production
|
||||
const taskFormSchema = z.object({
|
||||
|
||||
Reference in new issue
Block a user