Skip to content

Commit

Permalink
[KAN-120] fix: 적용하지 않은 부분에 코드 수정하기
Browse files Browse the repository at this point in the history
  • Loading branch information
BeMatthewsong committed Oct 14, 2024
1 parent 05c8222 commit b2bb3a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/(main)/mypage/_component/MyGatheringList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Card from '@/app/components/Card/Card';
import InfiniteScroll from '@/app/components/InfiniteScroll/InfiniteScroll';
import ReviewModal from '@/app/components/Modal/ReviewModal';
import useParticipation from '@/hooks/useParticipation';
import { joinedKeys } from '@/queries/mypage/joined';
import { queries } from '@/queries';
import { UserData } from '@/types/client.type';
import { UserJoinedGatheringsData } from '@/types/data.type';
import { useState } from 'react';
Expand Down Expand Up @@ -33,7 +33,7 @@ const MyGatheringList = ({ initData, user }: MyGatheringListProps) => {
<>
<InfiniteScroll
initData={initData}
queryKey={joinedKeys._def}
queryKey={queries.joined._def}
queryFn={getMyGatherings}
emptyText='아직 참여한 모임이 없습니다.'
errorText='모임을 불러오지 못했습니다.'
Expand All @@ -45,7 +45,7 @@ const MyGatheringList = ({ initData, user }: MyGatheringListProps) => {
handleButtonClick={() => {
item.isCompleted
? handleOpenModal(item.id)
: handleWithdrawClickWithId(item.id, joinedKeys._def);
: handleWithdrawClickWithId(item.id, queries.joined._def);
}}
/>
</Card>
Expand Down

0 comments on commit b2bb3a5

Please sign in to comment.