Skip to content

Commit 4f980c4

Browse files
authored
[Fix] 담당자 랜덤 프로필 복구
[Fix] 담당자 랜덤 프로필 복구
2 parents 305be34 + ef8d1b9 commit 4f980c4

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/components/modalInput/AssigneeSelect.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useState } from "react";
2+
import RandomProfile from "@/components/common/RandomProfile";
23

34
interface User {
45
id: number;
@@ -55,7 +56,11 @@ export default function AssigneeSelect({
5556
className="w-[26px] h-[26px] rounded-full object-cover"
5657
/>
5758
) : (
58-
<div className="w-[26px] h-[26px] rounded-full bg-gray-300" />
59+
<RandomProfile
60+
userId={selectedUser.userId}
61+
name={selectedUser.nickname}
62+
className="w-[26px] h-[26px] rounded-full text-white text-xs flex items-center justify-center"
63+
/>
5964
)}
6065
<span className="font-normal text-[14px] sm:text-[16px]">
6166
{selectedUser.nickname}
@@ -90,7 +95,11 @@ export default function AssigneeSelect({
9095
className="w-[26px] h-[26px] rounded-full object-cover"
9196
/>
9297
) : (
93-
<div className="w-[26px] h-[26px] rounded-full bg-gray-300" />
98+
<RandomProfile
99+
userId={user.userId}
100+
name={user.nickname}
101+
className="w-[26px] h-[26px] rounded-full text-white text-xs flex items-center justify-center"
102+
/>
94103
)}
95104
<span className="font-normal text-black3 sm:text-[16px] text-[14px]">
96105
{user.nickname}

src/components/modalInput/TaskModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function TaskModal({
8383
label="담당자"
8484
value={formData.assignee}
8585
required
86-
users={members} // ✅ 전체 멤버 데이터 전달
86+
users={members}
8787
onChange={(value) => handleChange("assignee", value)}
8888
/>
8989
</div>

0 commit comments

Comments
 (0)