don't close on assignment add
This commit is contained in:
@ -940,7 +940,7 @@ export default function CalendarPage({ initialEvents, initialShifts }) {
|
|||||||
{common.getTimeRange(shift.startTime, shift.endTime)} {shift.id}
|
{common.getTimeRange(shift.startTime, shift.endTime)} {shift.id}
|
||||||
|
|
||||||
{!assignmentExists && shift.isAvailable && (
|
{!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"
|
className="mt-2 bg-green-500 text-white p-1 rounded hover:bg-green-600 active:bg-green-700 focus:outline-none"
|
||||||
>
|
>
|
||||||
добави
|
добави
|
||||||
|
Reference in New Issue
Block a user