Skip to content

Commit 276f989

Browse files
committed
fix(fe/community) : repository 카드에 리포지토리 요약 -> 리포지토리 설명으로 수정
1 parent 051633c commit 276f989

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

front/src/components/community/RepoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function RepositoryCard({ item }: { item: RepositoryItem }) {
4343

4444
{/* 요약 */}
4545
<p className="mt-2 text-gray-700 text-sm leading-relaxed">
46-
{item.summary}
46+
{item.description}
4747
</p>
4848

4949
{/* 점수 */}

front/src/types/community.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
// 공개 상태 repository 목록 조회
44
export interface RepositoryItem {
5-
userName: string;
6-
userImage: string | null;
7-
repositoryId: number;
8-
summary: string;
9-
language: string[];
10-
totalScore: number;
11-
viewingStatus: boolean;
5+
userName: string
6+
userImage: string | null
7+
repositoryName: string
8+
repositoryId: number
9+
summary: string
10+
description: string
11+
language: string[]
12+
totalScore: number
13+
createDate: string // LocalDateTime → string
14+
viewingStatus: boolean
1215
}
1316

17+
1418
// comment 목록 조회
1519
export interface Comment {
1620
id: number

0 commit comments

Comments
 (0)