Skip to content

Commit

Permalink
fix: 프로필 기본정보 gap 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
simeunseo committed Dec 19, 2024
1 parent 926a5cb commit 56f4eab
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/members/detail/ProfileSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const convertBirthdayFormat = (birthday?: string) => {
// 생년월일을 보내지 않았을 경우에 DEFAULT_DATE를 전송하도록 임시처리 해 두었습니다. 이를 클라에서 보여주기 위해 대응합니다.
if (birthday) {
const isDefaultDay = dayjs(birthday).isSame(dayjs(DEFAULT_DATE));
return isDefaultDay ? '' : dayjs(birthday).format('YYYY-MM-DD');
return isDefaultDay ? '' : dayjs(birthday).format('YYYY.MM.DD');
}
return '';
};
Expand All @@ -57,14 +57,16 @@ const ContactSection = ({ profile }: { profile: ProfileDetail }) => {
</Link>
)}
</ContactTopWrapper>
{profile.email && (
<Link passHref href={`mailto:${profile.email}`} legacyBehavior>
<ContactItem style={{ cursor: 'pointer' }}>
<StyledIconMail />
<div className='email'>{profile.email}</div>
</ContactItem>
</Link>
)}
<div>
{profile.email && (
<Link passHref href={`mailto:${profile.email}`} legacyBehavior>
<ContactItem style={{ cursor: 'pointer' }}>
<StyledIconMail />
<div className='email'>{profile.email}</div>
</ContactItem>
</Link>
)}
</div>
</ContactWrapper>
);
};
Expand Down Expand Up @@ -294,7 +296,7 @@ const ContactWrapper = styled.div`
& > div {
display: flex;
gap: 4px;
gap: 12px;
align-items: center;
@media ${MOBILE_MEDIA_QUERY} {
Expand Down

0 comments on commit 56f4eab

Please sign in to comment.