This commit is contained in:
Dobromir Popov
2024-02-29 11:05:24 +02:00
parent cbe1d7e695
commit 9bb4f7a568
4 changed files with 46 additions and 20 deletions

View File

@ -85,6 +85,8 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a
// if (onPublisherSelect) {
// onPublisherSelect(publisher);
// }
common.copyToClipboard(null, publisher.firstName + ' ' + publisher.lastName);
}
const removeAssignment = async (id) => {
@ -124,6 +126,8 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a
return (
<div className={`flow w-full p-4 py-2 border-2 border-gray-300 rounded-md my-1 ${isSelected ? 'bg-gray-200' : ''}`}
onClick={handleShiftClick} onDoubleClick={copyAllPublisherNames}>