Skip to content

Commit

Permalink
Add type information for intermediate variables of the HeaderComponen…
Browse files Browse the repository at this point in the history
…t properties
  • Loading branch information
beittuc committed Dec 19, 2024
1 parent 463f395 commit 0ecc418
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/CalendarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
DateRangeHandler,
EventCellStyle,
EventRenderer,
HeaderRendererProps,
HeaderRenderer,
HorizontalDirection,
HourRenderer,
Expand Down Expand Up @@ -372,7 +373,7 @@ function _CalendarContainer<T extends ICalendarEventBase>({
)
}

const headerProps = {
const headerProps: HeaderRendererProps<T> = {
...commonProps,
style: headerContainerStyle,
headerContainerAccessibilityProps: headerContainerAccessibilityProps,
Expand Down

0 comments on commit 0ecc418

Please sign in to comment.