feat: deal product services

This commit is contained in:
2024-05-20 06:12:50 +03:00
parent e2304a2571
commit f0b38af53f

View File

@@ -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';
}