diff --git a/src/expandableCalendar/agendaList.tsx b/src/expandableCalendar/agendaList.tsx index a277a106c6..8176680adc 100644 --- a/src/expandableCalendar/agendaList.tsx +++ b/src/expandableCalendar/agendaList.tsx @@ -213,7 +213,7 @@ const AgendaList = (props: AgendaListProps) => { const title = info?.section?.title; if (renderSectionHeader) { - return renderSectionHeader(title); + return renderSectionHeader(info); } const headerTitle = getSectionTitle(title); diff --git a/src/expandableCalendar/infiniteAgendaList.tsx b/src/expandableCalendar/infiniteAgendaList.tsx index 5ab91a2c54..abe6932a51 100644 --- a/src/expandableCalendar/infiniteAgendaList.tsx +++ b/src/expandableCalendar/infiniteAgendaList.tsx @@ -208,7 +208,7 @@ const InfiniteAgendaList = ({ const title = info?.section?.title; if (renderSectionHeader) { - return renderSectionHeader(title); + return renderSectionHeader(info); } const headerTitle = getSectionTitle(title);