From cf4546e7549ce0c56bb86f43abed28415b03ce17 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Thu, 23 May 2024 02:52:03 +0300 Subject: [PATCH] desired shifts max to 8;UI styling --- components/calendar/ShiftComponent.tsx | 2 +- components/publisher/PublisherInlineForm.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/calendar/ShiftComponent.tsx b/components/calendar/ShiftComponent.tsx index 7dd6341..3e0de26 100644 --- a/components/calendar/ShiftComponent.tsx +++ b/components/calendar/ShiftComponent.tsx @@ -196,7 +196,7 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a return (
handlePublisherClick(ass.publisher)}> {publisherInfo.firstName} {publisherInfo.lastName} diff --git a/components/publisher/PublisherInlineForm.js b/components/publisher/PublisherInlineForm.js index b231520..72c2367 100644 --- a/components/publisher/PublisherInlineForm.js +++ b/components/publisher/PublisherInlineForm.js @@ -59,6 +59,7 @@ const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => { type="number" id="desiredShiftsPerMonth" name="desiredShiftsPerMonth" + min="0" max="8" value={desiredShiftsPerMonth} onChange={(e) => setDesiredShiftsPerMonth(parseInt(e.target.value))} className="textbox mt-1 sm:mt-0 w-full sm:w-auto flex-grow"