IO-1558 Add color to dates that are today.
This commit is contained in:
@@ -72,14 +72,14 @@ export default function ProductionListDate({ record, field, time }) {
|
||||
style={{
|
||||
height: "19px",
|
||||
}}
|
||||
className={
|
||||
!!record[field] && moment().isSame(moment(record[field]), "day")
|
||||
? "production-completion-1"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<DateFormatter
|
||||
bordered={false}
|
||||
className={
|
||||
!!record[field] && new Date(record[field]) - Now < OneCalendarDay
|
||||
? "production-completion-1"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
{record[field]}
|
||||
</DateFormatter>
|
||||
|
||||
Reference in New Issue
Block a user