Updates navigation event data

Updates the navigation event to include the current date
instead of the week start.

Makes the target date optional when rendering an all-day event.
This commit is contained in:
Janus Knudsen 2025-09-18 00:05:54 +02:00
parent 46b8bf9fb5
commit 5c67825e19
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ export class AllDayEventRenderer {
/**
* Render an all-day event using factory pattern
*/
public renderAllDayEvent(event: CalendarEvent, targetDate: string): HTMLElement | null {
public renderAllDayEvent(event: CalendarEvent, targetDate?: string): HTMLElement | null {
const container = this.getContainer();
if (!container) return null;