Skip to content

Commit

Permalink
Merge pull request #202 from bsideproject/feature/user
Browse files Browse the repository at this point in the history
[feat] MyProfile 부분 우선 커밋...
  • Loading branch information
KinDDoGGang authored Oct 25, 2023
2 parents d97d581 + f8637b5 commit 3edb60a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/liked/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export default function Liked({ roomInfo }: MyPostingProps) {
if (result?.error) {
setRooms([]);
} else {
setRooms((prevRooms) => [...prevRooms, ...(result?.content || [])]);
setTotalElements(result?.totalElements || 0);
setRooms((prevRooms) => [...prevRooms, ...(result?.content || [])]);
setTotalElements(result?.totalElements || 0);
}
// if (target?.current) {
// const observer = new IntersectionObserver(callback, options);
Expand Down Expand Up @@ -129,7 +129,7 @@ export default function Liked({ roomInfo }: MyPostingProps) {
const getChildData = async (childData: Record<string, string>) => {
makeFilters(childData);
setPage(0);
//setRooms([]);
// setRooms([]);
};
const openFilterPopup = () => {
openModal({
Expand Down Expand Up @@ -207,7 +207,7 @@ export default function Liked({ roomInfo }: MyPostingProps) {
<div className={`mt-[20px] ${rooms.length - 1 === idx ? 'mb-[83px]' : ''}`} key={`room-${idx}`}>
<RoomCard room={room} onClick={() => handleCardClick(room.id)} isLikedRooms />
</div>
))}
))}
<div className="mt-[83px] fixed bottom-[-15px] w-full overflow-x-hidden left-[50%] translate-x-[-50%] px-[20px] max-w-max">
<div className="w-full">
<div className="mb-[13px] space-x-[8px] max-w-max">
Expand Down
12 changes: 12 additions & 0 deletions public/icons/def_img.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3edb60a

Please sign in to comment.