Skip to content

Commit 3794042

Browse files
authored
Merge pull request #286 from manNomi/feat/univ-page
feat : 대학 페이지 자격증 , 기숙사 link 추가
2 parents b14f175 + 4f9d359 commit 3794042

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/api/news/client/useGetArticleList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface ArticleListResponse {
1313
}
1414

1515
const getArticleList = async (userId: number): Promise<ArticleListResponse> => {
16-
const response: AxiosResponse<ArticleListResponse> = await axiosInstance.get(`/news?site-user-id=${userId}`);
16+
const response: AxiosResponse<ArticleListResponse> = await axiosInstance.get(`/news?author-id=${userId}`);
1717
return response.data;
1818
};
1919

src/app/university/[id]/InfoSection.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import { useState } from "react";
44

5+
import LinkifyText from "@/components/ui/LinkifyText";
6+
57
interface InfoSectionProps {
68
semesterRequirement: string;
79
semesterAvailableForDispatch: string;
@@ -85,7 +87,9 @@ const InfoSection = ({
8587
</div>
8688
</div>
8789
<div className="pl-11">
88-
<span className="text-sm font-medium leading-normal text-k-700">{detailsForApply}</span>
90+
<span className="text-sm font-medium leading-normal text-k-700">
91+
<LinkifyText>{detailsForApply}</LinkifyText>
92+
</span>
8993
</div>
9094
</div>
9195
)}
@@ -130,7 +134,9 @@ const InfoSection = ({
130134
</div>
131135
</div>
132136
<div className="pl-11">
133-
<span className="text-sm font-medium leading-normal text-k-700">{detailsForAccommodation}</span>
137+
<span className="text-sm font-medium leading-normal text-k-700">
138+
<LinkifyText>{detailsForAccommodation}</LinkifyText>
139+
</span>
134140
</div>
135141
</div>
136142
)}

0 commit comments

Comments
 (0)