diff --git a/src/app/chat/[id]/page.tsx b/src/app/chat/[id]/page.tsx index f3d7d151..74df14f6 100644 --- a/src/app/chat/[id]/page.tsx +++ b/src/app/chat/[id]/page.tsx @@ -39,7 +39,7 @@ function ChatRoomPage() { const [isConnected, setIsConnected] = useState(false); const { data } = useQuery( - bookClubs.my()._ctx.joined({ order: 'DESC', page: 1, size: 10 }), + bookClubs.my()._ctx.joined({ order: 'DESC', page: 1, size: 100 }), ); const bookClubDetail = data?.bookClubs?.find( @@ -64,17 +64,13 @@ function ChatRoomPage() { await new Promise((resolve, reject) => { const checkConnection = setInterval(() => { - console.log(`소켓 연결 시도 ${attempts + 1}회`); - if (client?.connected) { - console.log('소켓 연결 성공!'); clearInterval(checkConnection); resolve(true); } attempts++; if (attempts >= maxAttempts) { - console.log('소켓 연결 최대 시도 횟수 초과'); clearInterval(checkConnection); reject(new Error('소켓 연결 타임아웃')); } @@ -181,7 +177,7 @@ function ChatRoomPage() { }; return ( -
+
@@ -192,12 +188,12 @@ function ChatRoomPage() { className="bg-gray-light-02" />

채팅

- +
} - onClick={() => console.log('메뉴 열기 버튼 클릭')} + onClick={() => {}} className="bg-gray-light-02" />
@@ -226,7 +222,7 @@ function ChatRoomPage() { onProfileClick={() => {}} />
-
+
diff --git a/src/constants/navigation.ts b/src/constants/navigation.ts index 52a930ff..4ef5d0c5 100644 --- a/src/constants/navigation.ts +++ b/src/constants/navigation.ts @@ -2,7 +2,7 @@ export const NAV_ITEMS = [ { id: 'bookco', href: '/bookclub', label: 'bookco' }, { id: 'bookclub', href: '/bookclub', label: '책 모임' }, { id: 'exchange', href: '/exchange', label: '책 교환' }, - { id: 'wish', href: '/wish', label: '찜 목록' }, + // { id: 'wish', href: '/wish', label: '찜 목록' }, { id: 'chat', href: '/chat', label: '채팅' }, ] as const; diff --git a/src/features/auth/api/auth.ts b/src/features/auth/api/auth.ts index 01abd80b..41db7216 100644 --- a/src/features/auth/api/auth.ts +++ b/src/features/auth/api/auth.ts @@ -30,7 +30,7 @@ export const login = async (data: LoginFormData) => { await getUserInfo(); const token = getCookie('auth_token'); - console.log('token', token); + if (token) { initializeSocket(token); } diff --git a/src/features/auth/api/refreshAccessToken.ts b/src/features/auth/api/refreshAccessToken.ts index 453566c9..f5b9c73d 100644 --- a/src/features/auth/api/refreshAccessToken.ts +++ b/src/features/auth/api/refreshAccessToken.ts @@ -15,7 +15,6 @@ export const refreshAccessToken = async (refreshToken: string) => { throw new Error('토큰 갱신 실패'); } - console.log('리프레시 성공'); return response.json(); } catch (error) { console.error('토큰 갱신 에러:', error); diff --git a/src/features/bookclub/components/BookClubMainPage.tsx b/src/features/bookclub/components/BookClubMainPage.tsx index 4cdc7632..f434bbdf 100644 --- a/src/features/bookclub/components/BookClubMainPage.tsx +++ b/src/features/bookclub/components/BookClubMainPage.tsx @@ -33,6 +33,7 @@ function BookClubMainPage() { } actionElement={