Skip to content

Commit

Permalink
refactor: 달력 글자 색상 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
junghaesung79 committed Jun 18, 2024
1 parent e10fcb4 commit c0c7266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Coop/components/Calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export default function Calendar({ selectedDate, setSelectedDate }: Props) {
>
<span className={cn({
[styles['day-of-week']]: true,
[styles['day-of-week--after']]: dayjs(date).isAfter(today, 'day'),
[styles['day-of-week--after']]: dayjs(`20${date}`).isAfter(today, 'day'),
[styles['day-of-week--selected']]: date === selectedDate,
})}
>
{getDayOfWeek(date)}
</span>
<span className={cn({
[styles.date]: true,
[styles['date--previous']]: dayjs(date).isBefore(today, 'day'),
[styles['date--previous']]: dayjs(`20${date}`).isBefore(today, 'day'),
[styles['date--today']]: date === today.format('YYMMDD'),
[styles['date--selected']]: date === selectedDate,
})}
Expand Down

0 comments on commit c0c7266

Please sign in to comment.