Skip to content

Commit

Permalink
feat: UserMapData 받아오기 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
YongChanCho committed Aug 16, 2024
1 parent 61b6bf6 commit f1464f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/userProfile/GetUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const GetUser = (props: { children?: React.ReactNode }) => {
const indexOfLastItem = currentPage * ITEMS_PER_PAGE;
const indexOfFirstItem = indexOfLastItem - ITEMS_PER_PAGE;
const currentItems = mapData.slice(indexOfFirstItem, indexOfLastItem);
const totalPages = Math.ceil(mapData.length / ITEMS_PER_PAGE); //10은 가지고 있는 맵의 개수(백과 연동하면 나중에 바꿔야함)
const totalPages = Math.ceil(mapData.length / ITEMS_PER_PAGE); //10은 가지고 있는 맵의 개수(백과 연동하면 나중에 바꿔야함) 변경완료

const handlePreviousPage = () => {
if (currentPage > 1) {
Expand Down
1 change: 1 addition & 0 deletions src/components/userProfile/getNewMap/NewMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const NewMap = ({ onClose }: { onClose: () => void }) => {
mapTitle,
mapDescription,
address: location,
imageUrl: "https://example.com/maps/seoul-food-tour",
latitude,
longitude,
zoomLevel,
Expand Down

0 comments on commit f1464f9

Please sign in to comment.