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) => {
|
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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user