Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alicedraillard committed Dec 5, 2024
1 parent ee84be8 commit 9812bc9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions frontend/src/components/board-card/useCardDropDownItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ export const useCardDropDownItems = (
}

if (isLocked) {
return !hasEditRights ?
[menuItems.preview]
: (isMagnetOwner || isManager) ?
[
menuItems.preview,
menuItems.duplicate,
menuItems.edit,
menuItems.move,
menuItems.lock,
menuItems.delete,
]
: [menuItems.preview];
return !hasEditRights
? [menuItems.preview]
: isMagnetOwner || isManager
? [
menuItems.preview,
menuItems.duplicate,
menuItems.edit,
menuItems.move,
menuItems.lock,
menuItems.delete,
]
: [menuItems.preview];
}

// console.log("hasContrib", hasContribRights);
Expand Down

0 comments on commit 9812bc9

Please sign in to comment.