mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-21 06:08:18 +02:00
Improve user experience by providing colored notifications for operations
Modify toast notifications to display success messages in green and errors in red using the "variant" property in Administration.tsx, NewSaleForm.tsx, and SalesHistory.tsx. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5aef45ab-dd7f-4d72-856e-de1c85394516.jpg
This commit is contained in:
1 parent
4333a9ae12
commit
b2ac262871
4 files changed
+20
-10
No files matched your search
@@ -60,6 +60,7 @@ export default function SalesHistory({ canDelete = false }: SalesHistoryProps) {
|
||||
toast({
|
||||
title: "Vente supprimée",
|
||||
description: "La vente a été supprimée avec succès",
|
||||
variant: "success",
|
||||
});
|
||||
},
|
||||
onError: () => {
|
||||
@@ -169,6 +170,7 @@ export default function SalesHistory({ canDelete = false }: SalesHistoryProps) {
|
||||
toast({
|
||||
title: "Export PDF réussi",
|
||||
description: `${sales.length} ventes exportées en PDF`,
|
||||
variant: "success",
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Erreur lors de l\'export PDF:', error);
|
||||
@@ -238,6 +240,7 @@ export default function SalesHistory({ canDelete = false }: SalesHistoryProps) {
|
||||
toast({
|
||||
title: "Export réussi",
|
||||
description: `${sales.length} ventes exportées`,
|
||||
variant: "success",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user