Skip to content

Commit 9b6e436

Browse files
committed
Merge branch 'develop'
2 parents 4002912 + 43b4e6c commit 9b6e436

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/features/home/consts/tab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const TAB_MAP = [
2-
"기업별 게시글",
2+
"기업별 게시글!",
33
"나와 맞는 게시글",
44
"최근 생성된 게시글",
55
"인기순",

src/features/home/ui/PostCardList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ const PostCardList = ({ selectedTab }: PostCardListProps) => {
5252
return (
5353
<>
5454
<ul className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4">
55-
{posts.map((item: CardItemProps) => {
55+
{posts.map((item: CardItemProps, index: number) => {
5656
const postId = item.postId ?? item.id;
57-
return <CardItem key={postId} {...item} id={postId} />;
57+
return <CardItem key={postId} {...item} id={postId} priority={index === 0 && selectedTab === 0} />;
5858
})}
5959
</ul>
6060
{activeQuery?.isFetchingNextPage && <Loading />}

src/pages/mypage/AskPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ const AskPage = () => {
106106
<section className="rounded-xl border border-normal bg-bgStrong p-8">
107107
<h3 className="mb-1 body-sb-18">안내사항</h3>
108108
<ul className="list-disc pl-5 body-r-14 font-alternative marker:text-xs marker:font-alternative">
109-
<li>문의 접수 후 영업일 기준 1~2일 내에 답변드릴 예정입니다.</li>
110-
<li>상담은 고객센터(0000-0000)로도 가능합니다.</li>
109+
<li>
110+
문의 접수 후 영업일 기준 1~2일 내에 답변드릴 예정입니다.
111+
</li>
112+
<li>상담은 고객센터(0000-0001)로도 가능합니다.</li>
111113
</ul>
112114
</section>
113115
</>

src/shared/ui/CardItem.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface CardItemProps {
2424
viewCount: number;
2525
keywords?: string[];
2626
shortSummary: string;
27+
priority?: boolean;
2728
}
2829

2930
export const CardItem = forwardRef<HTMLLIElement, CardItemProps>(
@@ -39,6 +40,7 @@ export const CardItem = forwardRef<HTMLLIElement, CardItemProps>(
3940
publishedAt,
4041
isBookmarked,
4142
shortSummary,
43+
priority = false,
4244
},
4345
ref,
4446
) => {
@@ -116,8 +118,7 @@ export const CardItem = forwardRef<HTMLLIElement, CardItemProps>(
116118
src={thumbnailUrl}
117119
alt={`{${title} - 썸네일}`}
118120
className=" w-full h-full object-cover"
119-
// loading="lazy"
120-
// decoding="async"
121+
fetchPriority={priority ? "high" : "auto"}
121122
/>
122123
) : (
123124
<p className="line-clamp-9 overflow-hidden text-clip min-h-45 text-sm">

0 commit comments

Comments
 (0)