Added color handling for Invoice status-buttons.

This commit is contained in:
rocketdebris 2025-12-02 14:01:36 -05:00
parent f2bfdbebf5
commit 8256af1ffd

View File

@ -1072,10 +1072,12 @@ const handleStatusButtonClick = (column, rowData) => {
const getBadgeColor = (status) => {
switch (status?.toLowerCase()) {
case "paid":
case "completed":
case "open":
case "active":
return "success";
case "draft":
case "in progress":
case "pending":
return "warn";