Update Year.tsx
Highlight today style in the year view like the other calendar views
This commit is contained in:
parent
91a2da907d
commit
b56448a657
|
@ -39,7 +39,7 @@ function CalendarDate(props) {
|
|||
const { dateToRender, dateOfMonth } = props;
|
||||
const today =
|
||||
dateToRender.format('YYYY-MM-DD') === moment().format('YYYY-MM-DD')
|
||||
? 'today'
|
||||
? styles.today
|
||||
: '';
|
||||
|
||||
if (dateToRender.month() < dateOfMonth.month()) {
|
||||
|
|
Loading…
Reference in New Issue