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) => { const getBadgeColor = (status) => {
switch (status?.toLowerCase()) { switch (status?.toLowerCase()) {
case "paid":
case "completed": case "completed":
case "open": case "open":
case "active": case "active":
return "success"; return "success";
case "draft":
case "in progress": case "in progress":
case "pending": case "pending":
return "warn"; return "warn";