Skip to content

Commit b84c0de

Browse files
authored
Merge pull request #171 from prgrms-web-devcourse-final-project/fix/170-build-error
[fix] 빌드 에러 삭제
2 parents 1a637ef + e2636a5 commit b84c0de

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

src/components/MusicCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function MusicCard({
4242

4343
//query
4444
const query = title && !isUserEditPage ? `${artist} - ${title} lyrics` : null;
45-
const { data: searchedVideoId, isLoading, isError } = useSearchYoutubeVideo(query);
45+
const { data: searchedVideoId } = useSearchYoutubeVideo(query);
4646

4747
const { setVideoId, players, setIsPlaying } = useYouTubeStore();
4848

src/components/testLogin/TestLoginModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ export default function TestLoginModal() {
6767
>
6868
로그아웃
6969
</button>
70-
{/* <button
70+
<button
7171
onClick={handleTokenReissue}
7272
className="caption-r bg-black/30 text-white px-1 py-1 rounded"
7373
>
7474
rt 재발급
7575
</button>
7676
<button onClick={test} className="caption-r bg-black/30 text-white px-1 py-1 rounded">
7777
테스트
78-
</button> */}
78+
</button>
7979
</>
8080
) : (
8181
<button

src/pages/chat/ChatRoom.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ export default function ChatRoom({}: ChatRoomProps) {
240240
</Button>
241241
</div>
242242
</div>
243+
244+
{/* 빌드용 빌드후 삭제 해주세요! */}
245+
<button onClick={connect}></button>
246+
<button onClick={disconnect}></button>
247+
<button onClick={sendMessage}></button>
243248
</div>
244249
);
245250
}

src/pages/userprofile/UserProfile.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
import { deleteEmotionRecord, getUserEmotionRecords } from '@/apis/emotionRecord';
22
import { getMyProfile, getUserProfile } from '@/apis/user';
3-
import EmotionRecordCard from '@/components/EmotionRecordCard';
4-
import InfoMessage from '@/components/InfoMessage';
53
import CardDetailModal from '@/components/modalSheet/CardDetailModal';
64
import MusicCard from '@/components/MusicCard';
75
import { useModalStore } from '@/store/modalStore';
86
import { useSheetStore } from '@/store/sheetStore';
9-
import { formatDate } from '@/utils/formatDate';
107
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
118
import { useEffect, useState } from 'react';
129
import { useNavigate, useParams } from 'react-router';
1310
import { useInView } from 'react-intersection-observer';
14-
import LoadingMini from '@/components/loading/LoadingMini';
1511
import EmotionRecordCardList from '@/pages/userprofile/components/EmotionRecordCardList';
1612

1713
// 마이페이지 / 유저페이지 동시에 사용
@@ -91,7 +87,7 @@ function UserProfile({ isMyPage }: { isMyPage: boolean }) {
9187
// 각 콜백의 context로 전달할 데이터 반환!
9288
return { previousRecords };
9389
},
94-
onError: (error, recordId, context) => {
90+
onError: (_, __, context) => {
9591
if (context?.previousRecords) {
9692
queryClient.setQueryData(
9793
['emotionRecords', isMyPage ? userData?.data?.loginId : userId],

0 commit comments

Comments
 (0)