From 9812bc99d633d25a5cab5b6ca82ff3ef2c7ff9f0 Mon Sep 17 00:00:00 2001 From: alicedraillard Date: Thu, 5 Dec 2024 13:20:29 +0100 Subject: [PATCH] prettier --- .../board-card/useCardDropDownItems.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/board-card/useCardDropDownItems.tsx b/frontend/src/components/board-card/useCardDropDownItems.tsx index eb6fec11..2ff86e72 100644 --- a/frontend/src/components/board-card/useCardDropDownItems.tsx +++ b/frontend/src/components/board-card/useCardDropDownItems.tsx @@ -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);