From c14118eb0809561ef383cae63d9f898d845ef871 Mon Sep 17 00:00:00 2001 From: Catia Barroco <104831678+CatiaBarroco-xgeeks@users.noreply.github.com> Date: Fri, 16 Sep 2022 10:00:22 +0100 Subject: [PATCH] feat: responsible can change the responsible --- .../src/components/Board/Settings/index.tsx | 213 +++++++++--------- frontend/src/pages/boards/[boardId].tsx | 1 + 2 files changed, 113 insertions(+), 101 deletions(-) diff --git a/frontend/src/components/Board/Settings/index.tsx b/frontend/src/components/Board/Settings/index.tsx index e8d8df186..e8a482144 100644 --- a/frontend/src/components/Board/Settings/index.tsx +++ b/frontend/src/components/Board/Settings/index.tsx @@ -45,6 +45,7 @@ type Props = { isStakeholderOrAdmin?: boolean | undefined; isOwner?: boolean | undefined; isSAdmin?: boolean | undefined; + isResponsible: boolean; }; const BoardSettings = ({ @@ -53,7 +54,8 @@ const BoardSettings = ({ socketId, isStakeholderOrAdmin, isOwner, - isSAdmin + isSAdmin, + isResponsible }: Props) => { // Recoil State used on [boardId].tsx const { board } = useRecoilValue(boardInfoState); @@ -325,116 +327,125 @@ const BoardSettings = ({ - {board.isSubBoard && (isStakeholderOrAdmin || isOwner || isSAdmin) && ( - - - - Team Responsible - - - - - - - + + + Team Responsible + + + + + + - - Responsible Lottery - - - - + Responsible Lottery + + - - - {!responsible - ? 'Responsible not found!' - : `${responsible?.firstName} ${responsible?.lastName}`} - - - - - - - - - )} + + + + + + {!responsible + ? 'Responsible not found!' + : `${responsible?.firstName} ${responsible?.lastName}`} + + + + + + + + + )}