Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/web/src/assets/svgs/space/ic_member.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/web/src/assets/svgs/space/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ export { default as ic_people_color } from "./ic_people_color.svg?react";
export { default as icon_file_open } from "./icon_file_open.svg?react";
export { default as ic_crown } from "./ic_crown.svg?react";
export { default as ic_new_clock } from "./ic_new_clock.svg?react";
export { default as ic_member } from "./ic_member.svg?react";
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ export default function MemberManagement({ spaceId }: { spaceId: string }) {
const { mutate: changeLeader } = useChangeLeader(spaceId);
const { mutate: kickMember } = useApiKickMember(spaceId);

useEffect(() => {
const leaderId = members.find((m) => m.isLeader)?.id;
if (leaderId) {
setCurrentLeaderId(leaderId);
}
}, [members]);

const handleClick = (e: React.MouseEvent) => {
e.stopPropagation();
setIsOpen(!isOpen);
Expand Down Expand Up @@ -130,6 +123,13 @@ export default function MemberManagement({ spaceId }: { spaceId: string }) {
);
};

useEffect(() => {
const leaderId = members.find((m) => m.isLeader)?.id;
if (leaderId) {
setCurrentLeaderId(leaderId);
}
}, [members]);

// 팀원 관리 드롭다운 외부 클릭 시 뷰 닫기
useEffect(() => {
const handleClickOutside = (event: MouseEvent) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function MemberManagementButton({ onClick, memberCount, isOpen = false }:
color: ${DESIGN_TOKEN_COLOR.gray600};
`}
>
<Icon icon={"ic_team"} size={2.0} color={DESIGN_TOKEN_COLOR.gray00} />
<Icon icon={"ic_member"} size={2.0} color={DESIGN_TOKEN_COLOR.gray00} />
<Typography variant="body14SemiBold" color="gray600">
{memberCount}
</Typography>
Expand Down