Skip to content

Commit c4d4c5f

Browse files
authored
Merge pull request #137 from InserToken/feat/35-pracMain/minseon
[refactor] 툴팁, height, console 주석
2 parents 1696e62 + 4033c1c commit c4d4c5f

16 files changed

Lines changed: 69 additions & 62 deletions

File tree

src/components/Navbar/navbar.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ export default function Navbar() {
3737
}
3838

3939
const status = await checkUserStatus(auth.token);
40-
console.log("이미 연동 완료된 user: ", status.hasHoldings);
40+
//("이미 연동 완료된 user: ", status.hasHoldings);
4141

4242
if (status.hasHoldings) {
4343
const stockData = await getStock(auth.token);
4444
const firstCode = stockData.stocks[0]?.stock_code._id;
45-
console.log("주식 조회", firstCode);
45+
//console.log("주식 조회", firstCode);
4646
if (firstCode) {
4747
router.push(`/investment/${firstCode}`);
4848
} else {

src/components/blocks/Auth/Login/Login.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function LoginClient() {
4141
};
4242

4343
useEffect(() => {
44-
console.log("auth가 스토어에 저장됨:", getAuth);
44+
//console.log("auth가 스토어에 저장됨:", getAuth);
4545
}, [getAuth]);
4646

4747
return (

src/components/blocks/Auth/SignUp/SignUp.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function SignupClient() {
4444
return;
4545
}
4646

47-
console.log("회원가입 성공 : ", data);
47+
//console.log("회원가입 성공 : ", data);
4848

4949
toast.success("회원가입 완료! 로그인으로 이동합니다.", {
5050
onClose: () => {

src/components/blocks/Investment/InvestmentStock/InvestmentStock.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function InvestmentStockClient() {
5555
setLoading(false);
5656
})
5757
.catch(() => {
58-
console.log("catch");
58+
//console.log("catch");
5959
setLoading(false);
6060
});
6161
}, [auth, params.stock_code, router]);
@@ -200,8 +200,8 @@ export default function InvestmentStockClient() {
200200

201201
const result = await getStock(token);
202202
setStock(result.stocks);
203-
console.log("사용자의 보유주식 조회:", result.stocks);
204-
console.log("param", params);
203+
//console.log("사용자의 보유주식 조회:", result.stocks);
204+
//console.log("param", params);
205205
};
206206

207207
fetchData();

src/components/blocks/Loading/Loading.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function LoadingPage() {
2828
const wait = elapsed < minDelay ? minDelay - elapsed : 0;
2929

3030
setTimeout(() => {
31-
console.log("✅ getStock result:", result);
31+
//("✅ getStock result:", result);
3232

3333
if ("message" in result) {
3434
setStatus("error");

src/components/blocks/MainHome/MainHome.client.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ export default function MainHomeClient() {
1818
}
1919

2020
const status = await checkUserStatus(auth.token);
21-
console.log("이미 연동 완료된 user: ", status.hasHoldings);
21+
//("이미 연동 완료된 user: ", status.hasHoldings);
2222

2323
if (status.hasHoldings) {
2424
const stockData = await getStock(auth.token);
2525
const firstCode = stockData.stocks[0]?.stock_code._id;
26-
console.log("주식 조회", firstCode);
26+
//console.log("주식 조회", firstCode);
2727
if (firstCode) {
2828
router.push(`/investment/${firstCode}`);
29-
console.log("보유한 주식 있음");
29+
//console.log("보유한 주식 있음");
3030
} else {
3131
router.push("/investment");
32-
console.log("조회됐는데 왜 ? ..");
32+
//console.log("조회됐는데 왜 ? ..");
3333
}
3434
} else {
35-
console.log("보유주식 없음");
35+
//console.log("보유주식 없음");
3636
router.push("/investment");
3737
}
3838
} catch (err) {

src/components/blocks/MyPagePractice/MyPagePractice.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default function MyPagePracticeClient() {
109109
const recentList = [...convertedScores]
110110
.sort((a, b) => b.date.getTime() - a.date.getTime())
111111
.slice(0, 5);
112-
console.log(recentList);
112+
//console.log(recentList);
113113
setRecentProblemList(recentList);
114114
});
115115
}, []);

src/components/blocks/PracticePage/PracticePage.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default function PracticeClient() {
129129
quantEvidence: data.breakdown?.quantEvidence,
130130
date: new Date().toISOString(),
131131
};
132-
console.log("채점 결과", data);
132+
//console.log("채점 결과", data);
133133
await postPracticeScore(token, practiceScoreData);
134134
toast.success("채점 및 저장 완료!");
135135
setFeedback(data.feedback || "피드백 없음.");

src/components/blocks/Ranking/PracticeRanking/PracticeRanking.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export default function PracticeRankingClient() {
2121
const fetchData = async () => {
2222
const result = await getRankPracProblem(auth.token);
2323
setProblem(result.data);
24-
console.log("내가 푼 문제 조회:", result);
24+
//console.log("내가 푼 문제 조회:", result);
2525
};
2626

2727
const fetchRankingData = async () => {
2828
const result = await getRankPracScore();
29-
console.log("랭킹 조회", result);
29+
//console.log("랭킹 조회", result);
3030
const grouped: {
3131
[key: string]: {
3232
name: string;
@@ -47,7 +47,7 @@ export default function PracticeRankingClient() {
4747
grouped[problemId].push({ name, score, answer, feedback });
4848
});
4949

50-
console.log("grouped", grouped);
50+
//console.log("grouped", grouped);
5151
setRankingData(grouped);
5252
};
5353

src/components/blocks/Ranking/RealRanking/RealRanking.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function RealRankingClient() {
1717
const fetchData = async () => {
1818
const result = await getStock(auth.token);
1919

20-
console.log("사용자의 보유주식 조회:", result.stocks);
20+
//console.log("사용자의 보유주식 조회:", result.stocks);
2121
setStock(result.stocks);
2222
};
2323

0 commit comments

Comments
 (0)