hilight publishers where desiredShiftsPerMonth not reached
This commit is contained in:
@ -786,10 +786,11 @@ export default function CalendarPage({ initialEvents, initialShifts }) {
|
|||||||
return (
|
return (
|
||||||
<li key={index}
|
<li key={index}
|
||||||
className={`flex justify-between items-center p-4 sm:py-2 rounded-lg shadow-sm mb-2
|
className={`flex justify-between items-center p-4 sm:py-2 rounded-lg shadow-sm mb-2
|
||||||
${bgAndBorderColorClass} ${selectedBorderClass} ${activeOpacityClass}`}
|
${bgAndBorderColorClass} ${selectedBorderClass} ${activeOpacityClass}
|
||||||
|
${pub.currentMonthAssignments >= pub.desiredShiftsPerMonth ? 'text-gray-400' : 'text-gray-800'}`}
|
||||||
onDoubleClick={(handlePublisherModalOpen.bind(this, pub))}
|
onDoubleClick={(handlePublisherModalOpen.bind(this, pub))}
|
||||||
>
|
>
|
||||||
<span className={`text-gray-700 ${pub.isAvailableForShift ? 'font-bold' : 'font-medium'} `}>
|
<span className={`${pub.isAvailableForShift ? 'font-bold' : 'font-medium'} `}>
|
||||||
{pub.firstName} {pub.lastName}
|
{pub.firstName} {pub.lastName}
|
||||||
{pub.canTransport && (<LocalShippingIcon className="mx-2 text-gray-500" />)}
|
{pub.canTransport && (<LocalShippingIcon className="mx-2 text-gray-500" />)}
|
||||||
</span>
|
</span>
|
||||||
|
Reference in New Issue
Block a user