Update Year.tsx

Highlight today style in the year view like the other calendar views
This commit is contained in:
mohammadamer 2021-10-03 00:53:05 +03:00 committed by GitHub
parent 91a2da907d
commit b56448a657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function CalendarDate(props) {
const { dateToRender, dateOfMonth } = props; const { dateToRender, dateOfMonth } = props;
const today = const today =
dateToRender.format('YYYY-MM-DD') === moment().format('YYYY-MM-DD') dateToRender.format('YYYY-MM-DD') === moment().format('YYYY-MM-DD')
? 'today' ? styles.today
: ''; : '';
if (dateToRender.month() < dateOfMonth.month()) { if (dateToRender.month() < dateOfMonth.month()) {