Added color handling for Invoice status-buttons.
This commit is contained in:
parent
f2bfdbebf5
commit
8256af1ffd
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue