mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-20 13:48:21 +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
@@ -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: '',
|
||||
|
||||
Reference in new issue
Block a user