Skip to content

Commit

Permalink
chore: disable text selection upon partner row double click
Browse files Browse the repository at this point in the history
  • Loading branch information
VinayakRugvedi authored and bshankar committed Jul 29, 2024
1 parent 2cf2fb9 commit 7fc98fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/projectEdit/partnersListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ export const Listing = ({ partnerIdToDetailsMapping }) => {
!isPending && !isRefetching && !isError && linkedPartners?.partnerships?.length === 0;

const tableContents = linkedPartners?.partnerships?.map((partner) => {
const [startDate, startDateString] = getDateObjectAndDateString(partner.startedOn)
const [startDate, startDateString] = getDateObjectAndDateString(partner.startedOn);

let endDateString = 'N/A',
endDate = null;
if (partner.endedOn) {
[endDate, endDateString] = getDateObjectAndDateString(partner.endedOn)
[endDate, endDateString] = getDateObjectAndDateString(partner.endedOn);
}

const isInactive = endDate && endDate < new Date();
Expand All @@ -184,6 +184,7 @@ export const Listing = ({ partnerIdToDetailsMapping }) => {
setSelectedPartner({ ...partner, startedOn: startDate, endedOn: endDate });
setActionType('edit');
}}
style={{ userSelect: 'none' }}
>
<td className="pv3 f5 pr3 bb b--black-20" id="edit-partner-action">
<span>{partnerIdToDetailsMapping[partner.partnerId]?.name}</span>
Expand Down

0 comments on commit 7fc98fe

Please sign in to comment.