-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: mypage api 연동 (badge history, level) #98
Conversation
d0422
commented
Sep 30, 2024
•
edited
Loading
edited
- badge history 연동
- level 연동
- 경상, 전라, 충청이 두번 표기되는 오류 해결
- 여행 추가시 navigation 오류 해결
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
const renderContent = () => { | ||
if (isLoading) { | ||
return ( | ||
<View> | ||
<Font type="body1" color="black"> | ||
잠시만 | ||
</Font> | ||
<Font type="body1" color="black"> | ||
기다려주세요 | ||
</Font> | ||
</View> | ||
); | ||
} | ||
|
||
return ( | ||
selectedBadge && | ||
badgeHistory?.map((badgeInfo, index) => ( | ||
<BadgeListItem | ||
key={`data-${index}`} | ||
location={selectedBadge} | ||
title={ | ||
getDisplayRegion({ | ||
locationEnum: badgeInfo.region, | ||
cityEnum: badgeInfo.city, | ||
onlyCity: true, | ||
}) || '' | ||
} | ||
date={badgeInfo.createdAt} | ||
content={ACQUISITION_MAPPER[badgeInfo.acquisitionType]} | ||
/> | ||
)) | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분은 컴포넌트로 만들 수 없나요?? 추가로 Suspense 적용은 어려울까요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영하였습니다! 96352b6