From ce1b1c556892e2a450497d0c2685d4f7e856702d Mon Sep 17 00:00:00 2001 From: dank074 Date: Sat, 27 Nov 2021 01:33:30 -0600 Subject: [PATCH] changes --- src/views/campaign/common/Utils.ts | 2 +- src/views/campaign/views/calendar/CalendarView.types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;