Skip to content

Commit

Permalink
style :: 멤버 추가 모달 더미 데이터 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 14, 2024
1 parent 82df804 commit 9a49994
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Team/TeamManage/MemberAddModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ export const BottomContainer = styled.div`
> div:first-child {
font-size: 18px;
font-weight: 500;
height: 21px;
}
`;
13 changes: 12 additions & 1 deletion src/pages/Team/Manage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,18 @@ export const TeamManage = () => {
})}
</MemberAddModal.MiddleContainer>
<MemberAddModal.BottomContainer>
<div>홍길동, 이름김, 테스트 등 3명</div>
<div>
{selectedStudent &&
selectedStudent.map((student, index) => {
return (
<>
{index <= 2 && <>{student.split(' ')[1]}</>}
{index < selectedStudent.length - 1 && index <= 1 && <>, </>}
</>
);
})}
{selectedStudent.length > 3 && <>{selectedStudent.length - 3}</>}
</div>
<XButton buttonStyle="solid" width={100} height={50} onClick={onMemberAdd}>
팀원 추가
</XButton>
Expand Down

0 comments on commit 9a49994

Please sign in to comment.