feat: deal product services
This commit is contained in:
@@ -25,12 +25,12 @@ const DealSummaryCard: FC<Props> = ({dealSummary}) => {
|
||||
const diff = deadlineDate.getTime() - currentDate.getTime();
|
||||
const diffDays = Math.ceil(diff / (1000 * 3600 * 24));
|
||||
if (diffDays < 0)
|
||||
return 'grey.8'; // for past deadlines
|
||||
return 'red.8'; // for past deadlines
|
||||
if (diffDays === 1) {
|
||||
return 'yellow.8';
|
||||
}
|
||||
if (diffDays === 0) {
|
||||
return 'red.8';
|
||||
return 'orange.8';
|
||||
}
|
||||
return 'green.8';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user