Skip to content

Commit

Permalink
feat: 전체모임 페이지네이션 방식 변경 (첫 페이지 take 개수 변경)
Browse files Browse the repository at this point in the history
  • Loading branch information
borimong committed Aug 30, 2024
1 parent d9bb41d commit a973d6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/API_LEGACY/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const fetchMeetingListOfAll = async ({
part,
}: filterData) => {
return api.get<PromiseResponse<MeetingListOfFilterResponse>>(
`/meeting?${page ? `&page=${page}` : ''}${
`/meeting?${page ? `&page=${page}` : ''}${page === 1 ? `&take=${11}` : `&take=${12}`}${
status?.length
? `&status=${status
.map(item => parseStatusToNumber(item, RECRUITMENT_STATUS))
Expand Down
8 changes: 4 additions & 4 deletions src/components/page/meetingList/Grid/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ export function MeetingListOfAll() {
<Card key={meetingData.id} meetingData={meetingData} mobileType="list" />
))}

{meetingAds && (
<Link href={meetingAds?.advertisementLink} target="_blank">
{meetingAds && meetingListData?.meta.page === 1 && (
<Link href={meetingAds?.advertisements[0]?.advertisementLink} target="_blank">
{isDesktop ? (
<img
src={meetingAds?.advertisementImages[0].imageUrl}
src={meetingAds?.advertisements[0].desktopImageUrl}
style={{ width: '380px', height: '478px', borderRadius: '12px' }}
></img>
) : (
<img
src={meetingAds?.advertisementImages[1].imageUrl}
src={meetingAds?.advertisements[0].mobileImageUrl}
style={{ width: '328px', height: '82px', borderRadius: '8px' }}
></img>
)}
Expand Down

0 comments on commit a973d6e

Please sign in to comment.