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