don't close on assignment add

This commit is contained in:
Dobromir Popov
2024-05-28 20:12:15 +03:00
parent 4843ff2bd9
commit 9dd43fbc34

View File

@ -940,7 +940,7 @@ export default function CalendarPage({ initialEvents, initialShifts }) {
{common.getTimeRange(shift.startTime, shift.endTime)} {shift.id}
{!assignmentExists && shift.isAvailable && (
<button onClick={() => { addAssignment(publisher, shift.id); onClose() }}
<button onClick={() => { addAssignment(publisher, shift.id); }}
className="mt-2 bg-green-500 text-white p-1 rounded hover:bg-green-600 active:bg-green-700 focus:outline-none"
>
добави