Skip to content

Commit

Permalink
refactor: CommunityTripsData타입 lastPageIndex 네이밍 복구
Browse files Browse the repository at this point in the history
  • Loading branch information
dladncks1217 committed Sep 19, 2023
1 parent 8483234 commit f42c5f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/CommunityPage/CommunityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const CommunityPage = () => {
<PageNavigation
pages={pageIndexDatas}
selected={page}
maxPage={communityTripsData.lastPage}
maxPage={communityTripsData.lastPageIndex}
onChangeNavigate={handleSetPage}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/types/trips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface RecommendedTripsData {
}

export interface CommunityTripsData {
lastPage: number;
lastPageIndex: number;
trips: CommunityTripData[];
}

Expand Down

0 comments on commit f42c5f9

Please sign in to comment.