A full-featured CRM built with React, shadcn/ui, and Supabase.
enhance import feedback and styling for error display
Jean-Baptiste Kaiser48cc21b90515
diff --git a/src/components/atomic-crm/misc/ImportPage.tsx b/src/components/atomic-crm/misc/ImportPage.tsxindex 507f3a98..42a6ad2f 100644--- a/src/components/atomic-crm/misc/ImportPage.tsx+++ b/src/components/atomic-crm/misc/ImportPage.tsx@@ -3,6 +3,7 @@ import { Form, required } from "ra-core";import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";import { Button } from "@/components/ui/button";import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";+import { cn } from "@/lib/utils";import {Table,TableBody,@@ -143,7 +144,7 @@ const ImportFromJsonSuccess = ({{hasFailedImports(importState.failedImports) ? (<><span className="text-destructive">- Some records were not imported.+ Some records were not imported.{" "}</span><DownloadErrorFileButton failedImports={importState.failedImports} /></>@@ -240,7 +241,12 @@ const ImportStats = ({<TableCell className="text-right text-success">{record.imported}</TableCell>- <TableCell className="text-right text-destructive">+ <TableCell+ className={cn(+ "text-right",+ record.failed > 0 && "text-destructive",+ )}+ >{record.failed}</TableCell></TableRow>