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:
michaelschal committed 2025-07-10 00:11:56 +00:00
1 parent 4333a9ae12
commit b2ac262871
4 files changed
+20 -10

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ export default function NewSaleForm() {
toast({
title: "Vente enregistrée",
description: "La vente a été enregistrée avec succès",
variant: "success",
});
form.reset({
vendeur: '',