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

Feature/#224 팀 랭킹 r api 연결 #263

Merged
merged 11 commits into from
Jun 29, 2024

Conversation

llddang
Copy link
Collaborator

@llddang llddang commented Jun 29, 2024

관련 이슈

작업 요약

  • 팀 랭킹 조회 api 연결했습니다.

리뷰 요구 사항

  • 리뷰 예상 시간 : 15분

Copy link
Collaborator

@jasper200207 jasper200207 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

} else {
swiper?.slideTo(idx);
}
};

useEffect(() => {
getTeams().then((res) => {
const teams = res.body.slice(0, 10).map((team: TeamRank, _: number) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

큰 의미는 없을 듯 하지만 사용하는 변수라면 _ 대신 변수명으로 쓰면 좋을 듯 합니다

{gardenInfos.map((info) => {
const currX = (info.week - standX) * gap;
const currZ = (info.date - 3) * gap;
{gardenInfo.map((info, _) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 _ 이건 뭘까용??

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그건 gardenInfos의 idx를 나타냅니다!

Copy link
Member

@pipisebastian pipisebastian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿!!

Comment on lines 35 to 36
garden.reduce((prev, value) => {
return prev.contributeCount >= value.contributeCount ? prev : value;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

혹시 저만 여기 타입 에러가 발생할까요..?
빈 배열에 대해 초기값이 없는 경우 타입 에러가 발생한다고 뜨는데, 다른 분들은 안뜨시나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시 지금도 발생하나요?
저는 에러가 발생하지 않았어요..

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이제 안뜨네용!

@llddang llddang merged commit 894e191 into develop Jun 29, 2024
1 check passed
@llddang llddang deleted the Feature/#224-팀_랭킹_R_API_연결 branch June 29, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 팀 랭킹 R API 연결
4 participants