Skip to content

Commit c342e86

Browse files
authored
Merge pull request #197 from prgrms-web-devcourse-final-project/chore/196-code-remove
[chore] 배포시 필요없는 코드 삭제 및 추가
2 parents 8ae23b9 + 51e80eb commit c342e86

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

src/components/ChatConnectLoadingSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function ChatConnectLoadingSheet() {
7777
try {
7878
const data = await createChatroom(10);
7979
console.log(data);
80-
const chatRoomId = data.data.chatRoomId;
80+
// const chatRoomId = data.data.chatRoomId; 배포할때 잠시 주석처리하겠습니다
8181

8282
if (data.code === 200) {
8383
//임시

src/pages/editprofile/components/PasswordEditForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ function PasswordEditForm() {
7373
const data = await patchEditProfile(updatedData);
7474

7575
if (data.code === 200) {
76+
setIsComplete(true);
7677
openModal({
7778
title: '비밀번호 변경이 완료되었습니다',
7879
onConfirm: () => {
@@ -82,6 +83,7 @@ function PasswordEditForm() {
8283
});
8384
}
8485
} catch (error) {
86+
setIsError(true);
8587
console.error('비밀번호 변경 오류:', error);
8688
openModal({
8789
title: '비밀번호 변경 실패',

src/pages/editprofile/components/ProfileEditForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ function ProfileEditForm() {
122122
useEffect(() => {
123123
const loadMyProfile = async () => {
124124
const data = await getMyProfile();
125-
console.log(data);
126125
prevNickname.current = data.data.nickname; // 이전 닉네임 저장하기
127126
prevProfileMusic.current = data.data.profileMusic; // 이전 음악 저장하기
128127

src/pages/home/Home.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Home() {
4444
} = useInfiniteQuery({
4545
queryKey: ['emotionRecords', selectedPostMusic?.spotifyId, selectedEmotion],
4646
queryFn: async ({ pageParam }) => {
47-
console.log('pageParam:', pageParam);
47+
// console.log('pageParam:', pageParam);
4848
try {
4949
const { data } = await getEmotionRecords(
5050
pageParam,
@@ -72,7 +72,7 @@ function Home() {
7272

7373
useEffect(() => {
7474
// 첫 페이지 로드
75-
console.log('페이지 로드', isLoading);
75+
// console.log('페이지 로드', isLoading);
7676
}, [isLoading]);
7777

7878
// 무한 스크롤 감지 요소 추가
@@ -121,7 +121,7 @@ function Home() {
121121
</div>
122122

123123
{/* 메인카드 리스트 */}
124-
<div className='flex-1'>
124+
<div className="flex-1">
125125
{emotionRecords?.pages[0].records.length > 0 ? (
126126
<>
127127
<div className="flex flex-col items-center gap-2.5 pb-5 ">

src/pages/signup/components/AuthCodeInput.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import InputAuthCode from '@/components/InputAuthCode';
22
import SpinLoading from '@/components/loading/SpinLoading';
33
import { AUTHCODE_REGEX } from '@/constants';
4-
import { MAX_RESEND_COUNT } from '@/constants/email';
5-
import { useEmailVerification } from '@/hooks/useEmailVerification';
64
import { useEmailVerificationCheck } from '@/hooks/useEmailVerificationCheck';
75
import { useResendEmailVerification } from '@/hooks/useResendEmailVerification';
86
import { useValidationWithButton } from '@/hooks/useValidationWithButton';
@@ -43,7 +41,7 @@ function AuthCodeInput({ email, emailvalidity, validity, setValidity }: AuthCode
4341
});
4442

4543
// 재전송 훅
46-
const { resendEmailVerification, isPending } = useResendEmailVerification(
44+
const { resendEmailVerification } = useResendEmailVerification(
4745
email,
4846
setValidationMessage,
4947
setButtonVariant,

src/pages/userprofile/UserProfile.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ function UserProfile({ isMyPage }: { isMyPage: boolean }) {
5858
select: (data) => data.pages as EmotionRecordPages[],
5959
});
6060

61-
console.log('감정데이터', emotionRecords);
6261
const [selectedRecordId, setSelectedRecordId] = useState<number | null>(null); // 선택된 항목 관리
6362

6463
const handleOpenSheet = (recordId: number) => {

src/pages/userprofile/components/EmotionRecordCardList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function EmotionRecordCardList({
1818
isFetchingNextPage,
1919
refProp,
2020
}: EmotionRecordCardListProps) {
21-
console.log(emotionRecords);
2221
if (!emotionRecords?.[0]?.data?.records?.length) {
2322
return (
2423
<div className="flex items-center justify-center w-full h-full">

0 commit comments

Comments
 (0)