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/#83] 오늘의 글감 API GET #89

Merged
merged 7 commits into from
Jan 14, 2024
Merged

Conversation

moondda
Copy link
Contributor

@moondda moondda commented Jan 14, 2024

✨ 해당 이슈 번호 ✨

closed #83

todo

  • 리액트쿼리 버전 맞추기
  • 오늘의 글감 API GET

📌 내가 알게 된 부분

📌 질문할 부분

📌스크린샷(선택)

Screenshot 2024-01-14 at 6 59 00 PM

@moondda moondda added ✨ Feature 새로운 기능 추가 (새로운 구현) 다현 labels Jan 14, 2024
@moondda moondda self-assigned this Jan 14, 2024
@github-actions github-actions bot added the size/l size/l label Jan 14, 2024
Copy link
Member

@namdaeun namdaeun left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@se0jinYoon se0jinYoon left a comment

Choose a reason for hiding this comment

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

lgtm 배워갑니다 연결할 때 다시 찾아볼게유

@@ -11,11 +16,29 @@ interface GroupFeedAuthQueryResult {

export const useGroupFeedAuth = (groupId: string): GroupFeedAuthQueryResult => {
const { data, isLoading, isError, error } = useQuery({
queryKey: ['groupFeed_Auth_moimId', groupId],
queryKey: [QUERY_KEY_GROUPFEED.getGroupFeedAuth, groupId],
Copy link
Contributor

Choose a reason for hiding this comment

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

p5) 오 오케이 어떻게 쓰는지 확인

queryFn: () => fetchTodayWritingStyle(groupId),
});

const content = data && data.data.content;
Copy link
Contributor

Choose a reason for hiding this comment

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

p5) 너무 깔꼼한 코드라 보기 좋아유

Copy link
Member

@ljh0608 ljh0608 left a comment

Choose a reason for hiding this comment

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

conflict 해결하고 머지해주세요!

import Button from '../../../components/commons/Button';

interface GroupTodayWriteStylePropTypes {
isMember: boolean;
isMember: boolean; //나의 글 작성하기 권한 확인
groupId: string | undefined; //오늘의 주제
Copy link
Member

Choose a reason for hiding this comment

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

[P1] 오늘의 주제인지 groupId인지 잘 모르겠는데 undefined가 올 수 있는지 string이 맞는지 한 번 체크 부탁드려요!

Copy link
Member

@ljh0608 ljh0608 left a comment

Choose a reason for hiding this comment

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

LGTM

}

const GroupTodayWriteStyle = (props: GroupTodayWriteStylePropTypes) => {
const { isMember } = props;
const { isMember, groupId } = props;
const { content, isLoading, isError, error } = useTodayWritingStyle(groupId || '');
Copy link
Member

Choose a reason for hiding this comment

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

[P2] Topic으로 네이밍 가독성 좋게 해주시면 좋을 것 같아요

@ljh0608 ljh0608 merged commit f03825c into develop Jan 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 새로운 기능 추가 (새로운 구현) size/l size/l 다현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ Feat ] 글모임 글감 API GET
4 participants