Skip to content

Commit

Permalink
id 값을 쿼리로 보내도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zestlee1106 committed Oct 8, 2023
1 parent 1dcebfb commit 81fd9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Home() {
{rooms.map((room, idx) => (
// Nav 영역 맨 마지막 부분 잘리는 문제로 추가!!
<div className={`mt-[20px] ${rooms.length - 1 === idx ? 'mb-[83px]' : ''}`} key={`room-${idx}`}>
<RoomCard room={room} onClick={() => handleCardClick(idx)} />
<RoomCard room={room} onClick={() => handleCardClick(room.id)} />
</div>
))}
<div ref={target} />
Expand Down

0 comments on commit 81fd9bb

Please sign in to comment.