Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 출연징 팀원 없을 때 하단 radius 적용 #222

Merged
merged 1 commit into from
Oct 15, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const Header = styled.div`
color: ${({ theme }) => theme.palette.grey.g90};
${({ theme }) => theme.typo.sh2};
padding: 24px 28px;

&:last-child {
border-radius: 8px;
}
`;

const EditButton = styled(Button)`
Expand Down
52 changes: 27 additions & 25 deletions apps/admin/src/components/ShowCastInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,34 @@ const ShowCastInfo = ({ showCastInfo, onSave, onDelete }: Props) => {
편집하기
</Styled.EditButton>
</Styled.Header>
<Styled.Cast
animate={{ transition: { type: 'tween' }, height: isOpen ? 'auto' : 0 }}
transition={{ duration: 0.4 }}
initial={{ height: 0, opacity: 1 }}
exit={{ height: 0, opacity: 1 }}
>
{members.map((member) => (
<Styled.CastItem key={member.id}>
<Styled.UserImage
style={{ '--imgPath': `url(${member.userImgPath})` } as React.CSSProperties}
/>
<Styled.Username>{member.userNickname}</Styled.Username>
<Styled.Rolename>({member.roleName})</Styled.Rolename>
</Styled.CastItem>
))}
</Styled.Cast>
{memberLength > 0 && (
<Styled.CollapseButton
onClick={(e) => {
e.preventDefault();
toggle();
}}
>
{isOpen ? '팀원 리스트 접기' : '팀원 리스트 펼쳐보기'}
{isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}
</Styled.CollapseButton>
<>
<Styled.Cast
animate={{ transition: { type: 'tween' }, height: isOpen ? 'auto' : 0 }}
transition={{ duration: 0.4 }}
initial={{ height: 0, opacity: 1 }}
exit={{ height: 0, opacity: 1 }}
>
{members.map((member) => (
<Styled.CastItem key={member.id}>
<Styled.UserImage
style={{ '--imgPath': `url(${member.userImgPath})` } as React.CSSProperties}
/>
<Styled.Username>{member.userNickname}</Styled.Username>
<Styled.Rolename>({member.roleName})</Styled.Rolename>
</Styled.CastItem>
))}
</Styled.Cast>
<Styled.CollapseButton
onClick={(e) => {
e.preventDefault();
toggle();
}}
>
{isOpen ? '팀원 리스트 접기' : '팀원 리스트 펼쳐보기'}
{isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}
</Styled.CollapseButton>
</>
)}
</Styled.Container>
);
Expand Down
Loading