Added color handling for Invoice status-buttons.
This commit is contained in:
parent
f2bfdbebf5
commit
8256af1ffd
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user