Skip to content

Commit

Permalink
change status dot color to black for archive/closed (by request from …
Browse files Browse the repository at this point in the history
…mexsurfer)
  • Loading branch information
zdmc23 committed May 3, 2021
1 parent 2d665dc commit 8c29568
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,18 @@ const formatDateToDatePicker = (timestamp = null) => {
};

const getSelectorColor = (status) => {
console.log(`status: ${status}`);
let newColor;
if (status === 'new' || status === 'unassigned' || status === 'closed' || status === 'inactive') {
if (status === 'new' || status === 'unassigned' || status === 'inactive') {
newColor = '#d9534f';
} else if (status === 'unassignable' || status === 'assigned' || status === 'paused') {
newColor = '#f0ad4e';
} else if (status === 'active') {
newColor = '#5cb85c';
} else if (status === 'from_facebook') {
newColor = '#366184';
} else if (status === 'closed') {
newColor = '#000';
}
return newColor;
};
Expand Down

0 comments on commit 8c29568

Please sign in to comment.