Skip to content

Commit cbd6d89

Browse files
committed
fix(community) : 커뮤니티 페이지 피드가 나오도록 수정
1 parent 5708f2d commit cbd6d89

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

front/src/app/community/page.tsx

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//커뮤니티 사용자 분석 결과 상세 페이지, 댓글 기능 있어야 하는 곳
2+
// 커뮤니티 메인 페이지
23
import RepositoryList from '@/components/community/RepoList';
34

45
export default function HomePage() {
@@ -9,36 +10,4 @@ export default function HomePage() {
910
<RepositoryList />
1011
</main>
1112
);
12-
}
13-
14-
// "use client"
15-
16-
// import { useState } from "react"
17-
// import { CommentList } from "@/components/community/CommentList"
18-
// import { CommentForm } from "@/components/community/CommentForm"
19-
20-
// export default function CommunityPage() {
21-
// const [refreshKey, setRefreshKey] = useState(0)
22-
23-
// return (
24-
// <main className="max-w-2xl mx-auto py-10">
25-
// <h1 className="text-2xl font-bold mb-6">💬 댓글 테스트 페이지</h1>
26-
27-
// {/* ✅ 댓글 작성 폼을 위로 이동 */}
28-
// <section className="mb-8">
29-
// <h2 className="text-lg font-semibold mb-3">댓글 작성</h2>
30-
// <CommentForm
31-
// analysisResultId="1"
32-
// memberId={1} // 로그인 후 실제 유저 ID로 대체
33-
// onCommentAdded={() => setRefreshKey((k) => k + 1)} // 작성 후 목록 새로고침
34-
// />
35-
// </section>
36-
37-
// {/* ✅ 댓글 목록은 아래쪽에 표시 */}
38-
// <section className="border-t border-border pt-6">
39-
// <h2 className="text-lg font-semibold mb-3">댓글 목록</h2>
40-
// <CommentList key={refreshKey} analysisResultId="1" />
41-
// </section>
42-
// </main>
43-
// )
44-
// }
13+
}

0 commit comments

Comments
 (0)