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

feat: 프로필 내 모임추가 #1286

Closed
wants to merge 6 commits into from
Closed

Conversation

seojisoosoo
Copy link
Member

🤫 쉿, 나한테만 말해줘요. 이슈넘버

🧐 어떤 것을 변경했어요~?

  • 프로필 내에 모임을 추가했어요.

🤔 그렇다면, 어떻게 구현했어요~?

  • 크루의 dev api를 연결했어요.

❤️‍🔥 당신이 생각하는 PR포인트, 내겐 매력포인트.

  • 어서 리팩토링하도록 할게요,,

📸 스크린샷, 없으면 이것 참,, 섭섭한데요?

스크린샷 2024-01-28 오후 2 24 36

@seojisoosoo seojisoosoo self-assigned this Jan 28, 2024
@github-actions github-actions bot requested a review from NamJwong January 28, 2024 05:25
Copy link

github-actions bot commented Jan 28, 2024

✨✨ 스토리북으로 확인하기 ✨✨

Copy link

github-actions bot commented Jan 28, 2024

🚀 프리뷰 배포 확인하기 🚀

https://b55aafb6.sopt-internal-dev.pages.dev

@seojisoosoo seojisoosoo requested review from juno7803 and removed request for NamJwong January 28, 2024 05:28
Copy link
Collaborator

@juno7803 juno7803 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 58 to 62
const { data: meetingList } = useQuery({
queryKey: ['getMeetings'],
queryFn: () => getMeetings(Number(memberId) ?? undefined),
});
console.log(meetingList);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const { data: meetingList } = useQuery({
queryKey: ['getMeetings'],
queryFn: () => getMeetings(Number(memberId) ?? undefined),
});
console.log(meetingList);
const { data: meetingList } = useQuery({
queryKey: ['getMeetings', memberId], // 1. 쿼리키에 추가가 필요할 것 같아요!
queryFn: () => getMeetings(Number(memberId) ?? undefined),
});
  1. memberId 도 string을 number로 캐스팅 하고(이게 타입 안맞거나 하면 NaN 되어버리거나 하는 위험이 있어서..!) 저걸 다시 어차피 getMeetings에서 string으로 바꿔서 쓰니까 애초에 getMeetings에 string으로 받아도 좋을 것 같아요!

쿼리키는 꼭 넣어주시구 이대로도 잘 동작한다면 2번은 나중에 반영해도 될 것 같아요!

Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. console.log 도 지우기

Copy link
Member Author

Choose a reason for hiding this comment

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

급하게 하느라 꼼꼼하지 못했는데.. 챙겨주셔서 넘 감사합니다ㅜㅜ

@juno7803
Copy link
Collaborator

juno7803 commented Jan 28, 2024

2024-01-28.2.36.12.mov

모바일 뷰에서 맨 아래쪽 영역이 잘 안나오는 것 같아요!

import { Spacing } from '@toss/emotion-utils';

<Spacing size={400} />

@seojisoosoo 맨 아래에 이 정도 추가해볼 수 있을까요?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: 프로필 내 모임 카드 추가
2 participants