From a01f08533f81802ca03daf3df90446f3fe64da6b Mon Sep 17 00:00:00 2001 From: hyunow <112617546+hyunow@users.noreply.github.com> Date: Thu, 12 Sep 2024 20:10:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AA=A8=EB=93=A0=20=EB=A9=A4=EB=B2=84?= =?UTF-8?q?=EC=9D=98=20=ED=94=84=EB=A1=9C=ED=95=84=20=EB=AA=A8=EB=8B=AC?= =?UTF-8?q?=EC=97=90=20=EC=99=95=EA=B4=80=20=EB=8B=AC=EC=95=84=EC=A3=BC?= =?UTF-8?q?=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95=20(#317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 모든 멤버의 프로필 모달에 왕관 달아주는 버그 수정 * fix: 할 일 목록 수정할 때 공백 불가능하도록 수정 --- app/[groupId]/_components/member-list.tsx | 2 +- app/[groupId]/_components/modal/modal-member-profile.tsx | 6 +++--- .../_components/modal/modal-task-list-name-edit.tsx | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/[groupId]/_components/member-list.tsx b/app/[groupId]/_components/member-list.tsx index 7b9fd944..79159e70 100644 --- a/app/[groupId]/_components/member-list.tsx +++ b/app/[groupId]/_components/member-list.tsx @@ -36,7 +36,7 @@ function MemberCard({ member, groupId, isAdmin, teamName }: MemberCardProps) { userImage={member.userImage} userName={member.userName} userEmail={member.userEmail} - isAdmin={isAdmin} + userRole={member.role} /> )); diff --git a/app/[groupId]/_components/modal/modal-member-profile.tsx b/app/[groupId]/_components/modal/modal-member-profile.tsx index 5011265e..33e0da42 100644 --- a/app/[groupId]/_components/modal/modal-member-profile.tsx +++ b/app/[groupId]/_components/modal/modal-member-profile.tsx @@ -11,7 +11,7 @@ interface ModalMemberProfileProps { userImage: string; userName: string; userEmail: string; - isAdmin: boolean; + userRole: string; } function ModalMemberProfile({ @@ -19,7 +19,7 @@ function ModalMemberProfile({ userImage, userName, userEmail, - isAdmin, + userRole, }: ModalMemberProfileProps) { const handleButtonClick = async () => { try { @@ -61,7 +61,7 @@ function ModalMemberProfile({
- {isAdmin && ( + {userRole === "ADMIN" && ( 왕관 )} diff --git a/app/[groupId]/_components/modal/modal-task-list-name-edit.tsx b/app/[groupId]/_components/modal/modal-task-list-name-edit.tsx index b74f7e2a..6c9c94f3 100644 --- a/app/[groupId]/_components/modal/modal-task-list-name-edit.tsx +++ b/app/[groupId]/_components/modal/modal-task-list-name-edit.tsx @@ -119,7 +119,11 @@ function ModalTaskListNameEdit({