Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
vassbence committed Oct 15, 2024
1 parent 7e4cf84 commit 488570a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/CalendarView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const TEST_DATA = [
{
id: 3,
start: new Date('2024/9/7'),
end: new Date('2024/9/11'),
end: new Date('2024/9/10'),
name: 'Example game 3',
color: 'green',
},
Expand All @@ -53,6 +53,14 @@ const TEST_DATA = [
name: 'Example game 5',
color: 'red',
},
{
id: 6,
start: new Date('2024/9/11'),
end: new Date('2024/9/13'),
name: 'Example game 2',
color: 'blue',
repeating: true,
},
]

type CalendarViewProps = {}
Expand Down Expand Up @@ -352,7 +360,7 @@ function CalendarView(props: CalendarViewProps) {
setOpenDay(day.date)
}}
>
{`Show more`}
{`Show ${day.items.filter((e) => e?.hidden).length} more`}
</Button>
</div>,
)
Expand Down

0 comments on commit 488570a

Please sign in to comment.