diff --git a/src/views/campaign/common/Utils.ts b/src/views/campaign/common/Utils.ts index 75c3c5b7..7b7be678 100644 --- a/src/views/campaign/common/Utils.ts +++ b/src/views/campaign/common/Utils.ts @@ -1,4 +1,4 @@ export const getNumItemsDisplayed = (): number => { - return Math.min(Math.max(2, Math.floor(window.screen.width / 135)), 7); + return Math.min(Math.max(2, Math.floor(window.screen.width / 135) - 3), 7); } diff --git a/src/views/campaign/views/calendar/CalendarView.types.ts b/src/views/campaign/views/calendar/CalendarView.types.ts index 754f592b..454021e3 100644 --- a/src/views/campaign/views/calendar/CalendarView.types.ts +++ b/src/views/campaign/views/calendar/CalendarView.types.ts @@ -1,7 +1,7 @@ export interface CalendarViewProps { close(): void; - openPackage(id: number, asStaff: boolean); + openPackage(id: number, asStaff: boolean): void; receivedProducts: Map; campaignName: string; currentDay: number;